// revisions: base nll // ignore-compare-mode-nll //[nll] compile-flags: -Z borrowck=mir fn foo<'a,'b>(x: &mut Vec<&'a u8>, y: &'b u8) { x.push(y); //[base]~^ ERROR lifetime mismatch //[nll]~^^ ERROR lifetime may not live long enough } fn main() { }