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