summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.rs
blob: 09ee9accccd2f698cf2a92a13afe9357e416a4d6 (plain)
1
2
3
4
5
6
fn foo(&mut (ref mut v, w): &mut (&u8, &u8), x: &u8) {
    *v = x;
    //~^ ERROR lifetime may not live long enough
}

fn main() { }