trait SomeTrait { type Wrapped: SomeTrait; fn f() -> (); } fn program() -> () where W: SomeTrait, //~^ ERROR: missing generics for associated type `SomeTrait::Wrapped` { return W::f(); } fn main() {}