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

fn main() { }