1 error[E0277]: the trait bound `T: Copy` is not satisfied
2 --> $DIR/where-clause-constraints-are-local-for-inherent-impl.rs:13:22
4 LL | require_copy(self.x);
5 | ------------ ^^^^^^ the trait `Copy` is not implemented for `T`
7 | required by a bound introduced by this call
9 note: required by a bound in `require_copy`
10 --> $DIR/where-clause-constraints-are-local-for-inherent-impl.rs:1:20
12 LL | fn require_copy<T: Copy>(x: T) {}
13 | ^^^^ required by this bound in `require_copy`
14 help: consider restricting type parameter `T`
16 LL | impl<T: std::marker::Copy> Foo<T> {
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0277`.