// compile-flags: -Ztrait-solver=next trait Foo { type Assoc; } trait Bar {} fn needs_bar() {} fn test::Assoc>>() { needs_bar::(); //~^ ERROR type annotations needed } fn main() {}