blob: 4bf5db41f4e92dcef0d1ffe4ffc2d16bec4fa6b7 [file] [log] [blame]
struct Ref<'a> {
x: &'a u32,
}
fn foo(mut x: Vec<Ref>, y: Ref) {
x.push(y);
//~^ ERROR lifetime may not live long enough
}
fn main() {}