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