1 // Test that we are NOT able to establish that `<T as
2 // MyTrait<'a>>::Output: 'a` outlives `'a` here -- we have only one
3 // recourse, which is to prove that `T: 'a` and `'a: 'a`, but we don't
10 fn foo<'a, T>() -> &'a ()
14 bar::<T::Output>() //~ ERROR the parameter type `T` may not live long enough
17 fn bar<'a, T>() -> &'a ()