]> git.proxmox.com Git - rustc.git/blame - src/test/ui/wf/wf-enum-fields.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / wf / wf-enum-fields.stderr
CommitLineData
b7449926 1error[E0277]: the trait bound `A: std::marker::Copy` is not satisfied
0731742a 2 --> $DIR/wf-enum-fields.rs:12:17
b7449926 3 |
e1599b0c 4LL | struct IsCopy<T:Copy> {
ba9703b0 5 | ---- required by this bound in `IsCopy`
e1599b0c 6...
532ac7d7 7LL | SomeVariant(IsCopy<A>)
b7449926 8 | ^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `A`
74b04a01 9 |
ba9703b0 10help: consider restricting type parameter `A`
74b04a01 11 |
ba9703b0
XL
12LL | enum SomeEnum<A: std::marker::Copy> {
13 | ^^^^^^^^^^^^^^^^^^^
b7449926
XL
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.