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> {
26 //~^ ERROR: type mismatch
27 //~| ERROR: type mismatch
32 // Same with lifetimes in the trait
41 /// Missing bound constraining `Assoc`, `T::Assoc` can't be normalized further.
42 fn foo2_fail<'a, T: Trait<'a>>() -> impl FooLike<Output = T::Assoc> {
43 //~^ ERROR `impl Trait` return type cannot contain a projection or `Self` that references lifetimes from a parent scope
44 //~| ERROR: type mismatch
45 //~| ERROR: type mismatch