-// revisions: base nll
-// ignore-compare-mode-nll
-//[nll] compile-flags: -Z borrowck=mir
-
#![allow(warnings)]
//~| ERROR the parameter type `T` may not live long enough
//~| ERROR the parameter type `T` may not live long enough
//~| ERROR the parameter type `T` may not live long enough
- //[base]~| ERROR the parameter type `T` may not live long enough
- //[base]~| ERROR the parameter type `T` may not live long enough
- //[base]~| ERROR the parameter type `T` may not live long enough
- //[nll]~| ERROR cannot return value referencing local data `*v` [E0515]
+ //~| ERROR cannot return value referencing local data `*v` [E0515]
}
fn main() {}