//@ compile-flags: -Znext-solver // Coherence should handle overflow while normalizing for // `trait_ref_is_knowable` correctly. trait Overflow { type Assoc; } impl Overflow for T where (T,): Overflow { type Assoc = <(T,) as Overflow>::Assoc; } trait Trait {} impl Trait for T {} struct LocalTy; impl Trait for ::Assoc {} //~^ ERROR conflicting implementations of trait `Trait` fn main() {}