summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions.rs
blob: ca0feaba851e07834c388814cee18bde18adb923 (plain)
1
2
3
4
5
6
fn foo(x: &mut Vec<&u8>, y: &u8) {
    x.push(y);
    //~^ ERROR lifetime may not live long enough
}

fn main() { }