2018-08-08 14:28:26 +02:00
|
|
|
error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
|
2020-01-29 16:55:37 -08:00
|
|
|
--> $DIR/wf-inherent-impl-method-where-clause.rs:12:27
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-01-18 14:57:56 -08:00
|
|
|
LL | trait ExtraCopy<T:Copy> { }
|
2020-04-05 22:15:06 -07:00
|
|
|
| ---- required by this bound in `ExtraCopy`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2020-01-18 14:57:56 -08:00
|
|
|
LL | fn foo(self) where T: ExtraCopy<U>
|
2020-01-29 16:55:37 -08:00
|
|
|
| ^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `U`
|
2019-12-26 13:43:33 +01:00
|
|
|
|
|
2020-03-13 19:28:14 -07:00
|
|
|
help: consider restricting type parameter `U`
|
2019-12-26 13:43:33 +01:00
|
|
|
|
|
2020-03-13 19:28:14 -07:00
|
|
|
LL | impl<T,U: std::marker::Copy> Foo<T,U> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|