]> git.proxmox.com Git - rustc.git/blame - src/test/ui/union/union-borrow-move-parent-sibling.nll.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / union / union-borrow-move-parent-sibling.nll.stderr
CommitLineData
0bf4aa26 1error[E0382]: use of moved value: `u`
b7449926
XL
2 --> $DIR/union-borrow-move-parent-sibling.rs:29:13
3 |
4LL | let a = u.x.0;
5 | ----- value moved here
6LL | let a = u.y; //~ ERROR use of moved value: `u.y`
7 | ^^^ value used here after move
8 |
9 = note: move occurs because `u` has type `U`, which does not implement the `Copy` trait
10
0bf4aa26 11error[E0382]: use of moved value: `u`
b7449926
XL
12 --> $DIR/union-borrow-move-parent-sibling.rs:41:13
13 |
14LL | let a = (u.x.0).0;
15 | --------- value moved here
16LL | let a = u.y; //~ ERROR use of moved value: `u.y`
17 | ^^^ value used here after move
18 |
19 = note: move occurs because `u` has type `U`, which does not implement the `Copy` trait
20
0bf4aa26 21error[E0382]: use of moved value: `u`
b7449926
XL
22 --> $DIR/union-borrow-move-parent-sibling.rs:53:13
23 |
24LL | let a = *u.y;
25 | ---- value moved here
26LL | let a = u.x; //~ ERROR use of moved value: `u.x`
27 | ^^^ value used here after move
28 |
29 = note: move occurs because `u` has type `U`, which does not implement the `Copy` trait
30
31error: aborting due to 3 previous errors
32
33For more information about this error, try `rustc --explain E0382`.