// compile-flags: -Ztrait-solver=next // check-pass // (should not pass, should be turned into a coherence-only test) // check that a `alias-eq(::Assoc, ::Assoc)` goal fails. // FIXME(deferred_projection_equality): add a test that this is true during coherence trait TraitB { type Assoc; } fn needs_a() -> T::Assoc { unimplemented!() } fn bar() { let _: <_ as TraitB>::Assoc = needs_a::(); } fn main() {}