]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-blocks/migrate-fail.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / consts / const-blocks / migrate-fail.stderr
CommitLineData
04454e1e 1error[E0277]: the trait bound `Bar: Copy` is not satisfied
923072b8 2 --> $DIR/migrate-fail.rs:11:38
416331ca
XL
3 |
4LL | let arr: [Option<Bar>; 2] = [x; 2];
04454e1e
FG
5 | ^ the trait `Copy` is not implemented for `Bar`
6 |
7 = note: required because of the requirements on the impl of `Copy` for `Option<Bar>`
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)]
416331ca 12 |
416331ca 13
04454e1e 14error[E0277]: the trait bound `Bar: Copy` is not satisfied
923072b8 15 --> $DIR/migrate-fail.rs:17:38
416331ca
XL
16 |
17LL | let arr: [Option<Bar>; 2] = [x; 2];
04454e1e
FG
18 | ^ the trait `Copy` is not implemented for `Bar`
19 |
20 = note: required because of the requirements on the impl of `Copy` for `Option<Bar>`
21 = note: the `Copy` trait is required because this value will be copied for each element of the array
22help: consider annotating `Bar` with `#[derive(Copy)]`
23 |
24LL | #[derive(Copy)]
416331ca 25 |
416331ca
XL
26
27error: aborting due to 2 previous errors
28
29For more information about this error, try `rustc --explain E0277`.