]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-blocks/nll-fail.stderr
Remove const_in_array_rep_expr
[rust.git] / src / test / ui / consts / const-blocks / nll-fail.stderr
1 error[E0277]: the trait bound `Option<Bar>: Copy` is not satisfied
2   --> $DIR/nll-fail.rs:12:37
3    |
4 LL |         let arr: [Option<Bar>; 2] = [x; 2];
5    |                                     ^^^^^^ the trait `Copy` is not implemented for `Option<Bar>`
6    |
7    = help: the following implementations were found:
8              <Option<T> as Copy>
9    = note: the `Copy` trait is required because the repeated element will be copied
10
11 error[E0277]: the trait bound `Option<Bar>: Copy` is not satisfied
12   --> $DIR/nll-fail.rs:18:37
13    |
14 LL |         let arr: [Option<Bar>; 2] = [x; 2];
15    |                                     ^^^^^^ the trait `Copy` is not implemented for `Option<Bar>`
16    |
17    = help: the following implementations were found:
18              <Option<T> as Copy>
19    = note: the `Copy` trait is required because the repeated element will be copied
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0277`.