1 // Test that the predicate printed in an unresolved method error prints the
2 // generics for a generic associated type.
4 #![feature(generic_associated_types)]
14 impl<T: X<Y<i32> = i32>> M for T {}
17 //~^ NOTE method `f` not found for this
18 //~| NOTE doesn't satisfy `<S as X>::Y<i32> = i32`
19 //~| NOTE doesn't satisfy `S: M`
27 //~^ ERROR the method `f` exists for struct `S`, but its trait bounds were not satisfied
28 //~| NOTE method cannot be called on `S` due to unsatisfied trait bounds
29 //~| NOTE the following trait bounds were not satisfied: