]>
Commit | Line | Data |
---|---|---|
04454e1e | 1 | error[E0277]: the trait bound `Bar: Copy` is not satisfied |
923072b8 | 2 | --> $DIR/migrate-fail.rs:11:38 |
416331ca XL |
3 | | |
4 | LL | let arr: [Option<Bar>; 2] = [x; 2]; | |
04454e1e FG |
5 | | ^ the trait `Copy` is not implemented for `Bar` |
6 | | | |
f2b60f7d | 7 | = note: required for `Option<Bar>` to implement `Copy` |
04454e1e FG |
8 | = note: the `Copy` trait is required because this value will be copied for each element of the array |
9 | help: consider annotating `Bar` with `#[derive(Copy)]` | |
10 | | | |
353b0b11 FG |
11 | LL + #[derive(Copy)] |
12 | LL | struct Bar; | |
416331ca | 13 | | |
416331ca | 14 | |
04454e1e | 15 | error[E0277]: the trait bound `Bar: Copy` is not satisfied |
923072b8 | 16 | --> $DIR/migrate-fail.rs:17:38 |
416331ca XL |
17 | | |
18 | LL | let arr: [Option<Bar>; 2] = [x; 2]; | |
04454e1e FG |
19 | | ^ the trait `Copy` is not implemented for `Bar` |
20 | | | |
f2b60f7d | 21 | = note: required for `Option<Bar>` to implement `Copy` |
04454e1e FG |
22 | = note: the `Copy` trait is required because this value will be copied for each element of the array |
23 | help: consider annotating `Bar` with `#[derive(Copy)]` | |
24 | | | |
353b0b11 FG |
25 | LL + #[derive(Copy)] |
26 | LL | struct Bar; | |
416331ca | 27 | | |
416331ca XL |
28 | |
29 | error: aborting due to 2 previous errors | |
30 | ||
31 | For more information about this error, try `rustc --explain E0277`. |