2019-06-12 02:26:16 -05:00
|
|
|
error[E0277]: the trait bound `std::option::Option<Bar>: std::marker::Copy` is not satisfied
|
2019-06-12 02:46:56 -05:00
|
|
|
--> $DIR/migrate-fail.rs:15:37
|
2019-05-26 06:57:00 -05:00
|
|
|
|
|
|
|
|
LL | let arr: [Option<Bar>; 2] = [x; 2];
|
|
|
|
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::option::Option<Bar>`
|
|
|
|
|
|
2019-06-12 02:26:16 -05:00
|
|
|
= help: the following implementations were found:
|
|
|
|
<std::option::Option<T> as std::marker::Copy>
|
|
|
|
= note: the `Copy` trait is required because the repeated element will be copied
|
2019-05-26 06:57:00 -05:00
|
|
|
|
2019-06-12 02:26:16 -05:00
|
|
|
error[E0277]: the trait bound `std::option::Option<Bar>: std::marker::Copy` is not satisfied
|
2019-06-12 02:46:56 -05:00
|
|
|
--> $DIR/migrate-fail.rs:21:37
|
2019-05-26 06:57:00 -05:00
|
|
|
|
|
|
|
|
LL | let arr: [Option<Bar>; 2] = [x; 2];
|
|
|
|
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::option::Option<Bar>`
|
|
|
|
|
|
2019-06-12 02:26:16 -05:00
|
|
|
= help: the following implementations were found:
|
|
|
|
<std::option::Option<T> as std::marker::Copy>
|
|
|
|
= 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`.
|