mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-25 23:26:08 +00:00
11 lines
169 B
Rust
11 lines
169 B
Rust
struct Ref<'a, T: 'a> {
|
|
data: &'a T
|
|
}
|
|
|
|
fn foo(x: &mut Vec<Ref<i32>>, y: Ref<i32>) {
|
|
x.push(y);
|
|
//~^ ERROR lifetime may not live long enough
|
|
}
|
|
|
|
fn main() { }
|