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

18 lines
596 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/wf-enum-bound.rs:9:1
2018-08-08 12:28:26 +00:00
|
LL | trait ExtraCopy<T:Copy> { }
| ----------------------- required by `ExtraCopy`
LL |
2019-03-09 12:03:44 +00:00
LL | / enum SomeEnum<T,U>
2018-08-08 12:28:26 +00:00
LL | | where T: ExtraCopy<U>
2019-10-08 18:03:35 +00:00
| | - help: consider further restricting type parameter `U`: `, U: std::marker::Copy`
2018-08-08 12:28:26 +00:00
LL | | {
LL | | SomeVariant(T,U)
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`.