// compile-flags: -Ztrait-solver=next // check that a `alias-eq(::Assoc, ::Assoc)` goal fails // during coherence. We must not incorrectly constrain `?a` and `?b` to be // equal. trait TraitB { type Assoc; } trait Overlaps {} impl Overlaps> for ::Assoc {} impl Overlaps for ::Assoc {} //~^ ERROR conflicting implementations of trait fn main() {}