fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `Bar: Copy` is not satisfied 2 --> $DIR/nll-fail.rs:11:38 3 | 4LL | let arr: [Option<Bar>; 2] = [x; 2]; 5 | ^ the trait `Copy` is not implemented for `Bar` 6 | 7 = note: required for `Option<Bar>` to implement `Copy` 8 = note: the `Copy` trait is required because this value will be copied for each element of the array 9help: consider annotating `Bar` with `#[derive(Copy)]` 10 | 11LL + #[derive(Copy)] 12LL | struct Bar; 13 | 14 15error[E0277]: the trait bound `Bar: Copy` is not satisfied 16 --> $DIR/nll-fail.rs:17:38 17 | 18LL | let arr: [Option<Bar>; 2] = [x; 2]; 19 | ^ the trait `Copy` is not implemented for `Bar` 20 | 21 = note: required for `Option<Bar>` to implement `Copy` 22 = note: the `Copy` trait is required because this value will be copied for each element of the array 23help: consider annotating `Bar` with `#[derive(Copy)]` 24 | 25LL + #[derive(Copy)] 26LL | struct Bar; 27 | 28 29error: aborting due to 2 previous errors 30 31For more information about this error, try `rustc --explain E0277`.