summary refs log tree commit diff
path: root/src/test/ui/consts/rfc-2203-const-array-repeat-exprs/nll-fail.stderr
blob: 3aa69996ff743617cf451ea068bb07e791a725e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error[E0277]: the trait bound `Option<Bar>: Copy` is not satisfied
  --> $DIR/nll-fail.rs:13:37
   |
LL |         let arr: [Option<Bar>; 2] = [x; 2];
   |                                     ^^^^^^ the trait `Copy` is not implemented for `Option<Bar>`
   |
   = help: the following implementations were found:
             <Option<T> as Copy>
   = note: the `Copy` trait is required because the repeated element will be copied

error[E0277]: the trait bound `Option<Bar>: Copy` is not satisfied
  --> $DIR/nll-fail.rs:19:37
   |
LL |         let arr: [Option<Bar>; 2] = [x; 2];
   |                                     ^^^^^^ the trait `Copy` is not implemented for `Option<Bar>`
   |
   = help: the following implementations were found:
             <Option<T> as Copy>
   = note: the `Copy` trait is required because the repeated element will be copied

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0277`.