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

7 lines
133 B
Rust

fn foo(&mut (ref mut v, w): &mut (&u8, &u8), x: &u8) {
//~^ ERROR lifetime may not live long enough
*v = x;
}
fn main() { }