1 fn require_copy<T: Copy>(x: T) {}
6 fn needs_copy(self) where T: Copy;
10 // Ensure constraints are only attached to methods locally
11 impl<T> Foo<T> for Bar<T> {
12 fn needs_copy(self) where T: Copy {
19 //~^ ERROR the trait bound `T: Copy` is not satisfied