2018-08-08 07:28:26 -05:00
|
|
|
error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied
|
2019-09-15 23:58:20 -05:00
|
|
|
--> $DIR/where-clause-constraints-are-local-for-inherent-impl.rs:13:22
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-08-24 16:44:43 -05:00
|
|
|
LL | fn require_copy<T: Copy>(x: T) {}
|
2019-09-04 12:17:59 -05:00
|
|
|
| ------------ ---- required by this bound in `require_copy`
|
2019-08-24 16:44:43 -05:00
|
|
|
...
|
2019-10-08 17:22:27 -05:00
|
|
|
LL | impl<T> Foo<T> {
|
|
|
|
| - help: consider restricting this bound: `T: std::marker::Copy`
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | require_copy(self.x);
|
2019-09-15 23:58:20 -05:00
|
|
|
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `T`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|