blob: 70337ee40eacfc4cde62410fe510e90fd705eb85 [file] [log] [blame]
error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
--> $DIR/wf-inherent-impl-method-where-clause.rs:12:27
|
LL | trait ExtraCopy<T:Copy> { }
| ----------------------- required by `ExtraCopy`
...
LL | fn foo(self) where T: ExtraCopy<U>
| ^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `U`
|
help: consider restricting this type parameter with `U: std::marker::Copy`
--> $DIR/wf-inherent-impl-method-where-clause.rs:11:8
|
LL | impl<T,U> Foo<T,U> {
| ^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.