blob: 3313eb2050878b24c9f79543c8837b663e9cc6b3 [file] [log] [blame]
error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
--> $DIR/wf-enum-bound.rs:19:1
|
LL | / enum SomeEnum<T,U> //~ ERROR E0277
LL | | where T: ExtraCopy<U>
LL | | {
LL | | SomeVariant(T,U)
LL | | }
| |_^ the trait `std::marker::Copy` is not implemented for `U`
|
= help: consider adding a `where U: std::marker::Copy` bound
note: required by `ExtraCopy`
--> $DIR/wf-enum-bound.rs:17:1
|
LL | trait ExtraCopy<T:Copy> { }
| ^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.