2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `Option<Bar>: Copy` is not satisfied
|
|
|
|
--> $DIR/migrate-fail.rs:14:37
|
2019-05-26 06:57:00 -05:00
|
|
|
|
|
|
|
|
LL | let arr: [Option<Bar>; 2] = [x; 2];
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^ the trait `Copy` is not implemented for `Option<Bar>`
|
2019-05-26 06:57:00 -05:00
|
|
|
|
|
2019-06-12 02:26:16 -05:00
|
|
|
= help: the following implementations were found:
|
2020-09-02 02:40:56 -05:00
|
|
|
<Option<T> as Copy>
|
2019-06-12 02:26:16 -05:00
|
|
|
= note: the `Copy` trait is required because the repeated element will be copied
|
2019-05-26 06:57:00 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `Option<Bar>: Copy` is not satisfied
|
|
|
|
--> $DIR/migrate-fail.rs:20:37
|
2019-05-26 06:57:00 -05:00
|
|
|
|
|
|
|
|
LL | let arr: [Option<Bar>; 2] = [x; 2];
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^ the trait `Copy` is not implemented for `Option<Bar>`
|
2019-05-26 06:57:00 -05:00
|
|
|
|
|
2019-06-12 02:26:16 -05:00
|
|
|
= help: the following implementations were found:
|
2020-09-02 02:40:56 -05:00
|
|
|
<Option<T> as Copy>
|
2019-06-12 02:26:16 -05:00
|
|
|
= note: the `Copy` trait is required because the repeated element will be copied
|
2019-05-26 06:57:00 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-06-12 02:26:16 -05:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|