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