// Formerly this ICEd with the following message: // Tried to project an inherited associated type during coherence checking, // which is currently not supported. // // No we expect to run into a more user-friendly cycle error instead. #![feature(specialization)] //~^ WARN the feature `specialization` is incomplete trait Trait { type Assoc; } //~^ ERROR E0391 impl Trait for Vec { type Assoc = (); } impl Trait for Vec {} impl Trait for String { type Assoc = (); } impl Trait< as Trait>::Assoc> for String {} fn main() {}