summaryrefslogtreecommitdiffstats
path: root/tests/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.rs
blob: c611268849ab502a16faad4785cbada6c020915a (plain)
1
2
3
4
fn foo(x: &mut Vec<&'_ u8>, y: &'_ u8) { x.push(y); }
//~^ ERROR lifetime may not live long enough

fn main() {}