pub trait A: Copy {} struct Foo; pub trait D { fn f(self) where T: A; //~^ ERROR associated item constraints are not allowed here [E0229] } fn main() {}