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