5 // Reduction to `impl Trait`
13 impl<T> FooLike for Foo<T> {
24 /// `T::Assoc` can't be normalized any further here.
25 fn foo_fail<T: Trait>() -> impl FooLike<Output = T::Assoc> {
27 //~^ ERROR: type mismatch
31 // Same with lifetimes in the trait
40 /// Missing bound constraining `Assoc`, `T::Assoc` can't be normalized further.
41 fn foo2_fail<'a, T: Trait<'a>>() -> impl FooLike<Output = T::Assoc> {
42 //~^ ERROR `impl Trait` return type cannot contain a projection or `Self` that references lifetimes from a parent scope
44 //~^ ERROR: type mismatch