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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
187 B
Rust
Raw Normal View History

2017-08-05 17:39:43 -05:00
fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
2022-05-22 01:05:15 -05:00
z.push((x,y));
2022-04-01 12:13:25 -05:00
//~^ ERROR lifetime may not live long enough
//~| ERROR lifetime may not live long enough
}
fn main() { }