mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-26 00:48:34 +00:00
10 lines
156 B
Rust
10 lines
156 B
Rust
struct Ref<'a, T: 'a> {
|
|
data: &'a T
|
|
}
|
|
|
|
fn foo<'a>(x: Ref<i32>, y: &mut Vec<Ref<'a, i32>>) {
|
|
y.push(x); //~ ERROR explicit lifetime
|
|
}
|
|
|
|
fn main() { }
|