rust/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.rs

8 lines
187 B
Rust

fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
z.push((x,y));
//~^ ERROR lifetime may not live long enough
//~| ERROR lifetime may not live long enough
}
fn main() { }