// compile-flags: -Ztrait-solver=next // 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::(); //~^ error: type annotations needed } fn main() {}