1 // compile-flags:-Zverbose
7 fn no_region<'a, T>(x: Box<T>) -> impl Debug + 'a
12 //~^ ERROR the parameter type `T` may not live long enough [E0309]
15 fn correct_region<'a, T>(x: Box<T>) -> impl Debug + 'a
22 fn wrong_region<'a, 'b, T>(x: Box<T>) -> impl Debug + 'a
27 //~^ ERROR the parameter type `T` may not live long enough [E0309]
30 fn outlives_region<'a, 'b, T>(x: Box<T>) -> impl Debug + 'a