os-rust/src/test/ui/wf/wf-inherent-impl-method-where-clause.stderr

18 lines
622 B
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
--> $DIR/wf-inherent-impl-method-where-clause.rs:12:27
2018-08-08 14:28:26 +02:00
|
LL | trait ExtraCopy<T:Copy> { }
2020-04-05 22:15:06 -07:00
| ---- required by this bound in `ExtraCopy`
...
LL | fn foo(self) where T: ExtraCopy<U>
| ^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `U`
|
help: consider restricting type parameter `U`
|
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`.