rust/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.rs
2023-01-11 09:32:08 +00:00

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() { }