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