//@ compile-flags: -Znext-solver trait Foo { type Assoc; } trait Bar {} fn needs_bar() {} fn test::Assoc>>() { needs_bar::(); //~^ ERROR the trait bound `::Assoc: Bar` is not satisfied } fn main() {}