rust/src/test/ui/wf/wf-trait-bound.stderr

17 lines
571 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/wf-trait-bound.rs:9:1
2018-08-08 07:28:26 -05:00
|
LL | trait ExtraCopy<T:Copy> { }
| ----------------------- required by `ExtraCopy`
LL |
2019-03-09 06:03:44 -06:00
LL | / trait SomeTrait<T,U>
2018-08-08 07:28:26 -05:00
LL | | where T: ExtraCopy<U>
2019-10-08 13:03:35 -05:00
| | - help: consider further restricting type parameter `U`: `, U: std::marker::Copy`
2018-08-08 07:28:26 -05:00
LL | | {
LL | | }
| |_^ the trait `std::marker::Copy` is not implemented for `U`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.