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

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

7 lines
133 B
Rust
Raw Normal View History

fn foo(&mut (ref mut v, w): &mut (&u8, &u8), x: &u8) {
2022-05-22 01:05:15 -05:00
*v = x;
2022-04-01 12:13:25 -05:00
//~^ ERROR lifetime may not live long enough
}
fn main() { }