// regression test for #118987 #![feature(specialization)] //~ WARN the feature `specialization` is incomplete trait Assoc { type Output; } default impl Assoc for T { type Output = bool; } impl Assoc for u8 {} trait Foo {} impl Foo for ::Output {} impl Foo for ::Output {} //~^ ERROR the trait bound `u16: Assoc` is not satisfied fn main() {}