]> git.proxmox.com Git - rustc.git/blob - src/test/ui/wf/wf-enum-bound.stderr
New upstream version 1.30.0~beta.7+dfsg1
[rustc.git] / src / test / ui / wf / wf-enum-bound.stderr
1 error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
2 --> $DIR/wf-enum-bound.rs:19:1
3 |
4 LL | / enum SomeEnum<T,U> //~ ERROR E0277
5 LL | | where T: ExtraCopy<U>
6 LL | | {
7 LL | | SomeVariant(T,U)
8 LL | | }
9 | |_^ the trait `std::marker::Copy` is not implemented for `U`
10 |
11 = help: consider adding a `where U: std::marker::Copy` bound
12 note: required by `ExtraCopy`
13 --> $DIR/wf-enum-bound.rs:17:1
14 |
15 LL | trait ExtraCopy<T:Copy> { }
16 | ^^^^^^^^^^^^^^^^^^^^^^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.