]>
Commit | Line | Data |
---|---|---|
0bf4aa26 | 1 | error[E0382]: use of moved value: `u` |
b7449926 XL |
2 | --> $DIR/union-borrow-move-parent-sibling.rs:29:13 |
3 | | | |
4 | LL | let a = u.x.0; | |
5 | | ----- value moved here | |
6 | LL | 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 | 11 | error[E0382]: use of moved value: `u` |
b7449926 XL |
12 | --> $DIR/union-borrow-move-parent-sibling.rs:41:13 |
13 | | | |
14 | LL | let a = (u.x.0).0; | |
15 | | --------- value moved here | |
16 | LL | 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 | 21 | error[E0382]: use of moved value: `u` |
b7449926 XL |
22 | --> $DIR/union-borrow-move-parent-sibling.rs:53:13 |
23 | | | |
24 | LL | let a = *u.y; | |
25 | | ---- value moved here | |
26 | LL | 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 | ||
31 | error: aborting due to 3 previous errors | |
32 | ||
33 | For more information about this error, try `rustc --explain E0382`. |