2 #![feature(specialization, with_negative_coherence)]
3 #![allow(incomplete_features)]
12 impl<T> Y for T where T: X {}
13 impl<T: X> Z for A<T> {
17 // this impl is invalid, but causes an ICE anyway
18 impl<T> From<<A<T> as Z>::Assoc> for T {}
19 //~^ ERROR type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)