2022-04-01 21:29:27 -05:00
|
|
|
// revisions: base nll
|
|
|
|
// ignore-compare-mode-nll
|
|
|
|
//[nll] compile-flags: -Z borrowck=mir
|
|
|
|
|
|
|
|
fn foo(x: &mut Vec<&'_ u8>, y: &'_ u8) { x.push(y); }
|
|
|
|
//[base]~^ ERROR lifetime mismatch
|
|
|
|
//[nll]~^^ ERROR lifetime may not live long enough
|
2017-09-19 18:43:18 -05:00
|
|
|
|
|
|
|
fn main() {}
|