2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `Option<Bar>: Copy` is not satisfied
|
2021-01-26 16:49:30 -06:00
|
|
|
--> $DIR/nll-fail.rs:12: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
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the trait `Copy` is implemented for `Option<T>`
|
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
|
2021-01-26 16:49:30 -06:00
|
|
|
--> $DIR/nll-fail.rs:18: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
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the trait `Copy` is implemented for `Option<T>`
|
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`.
|