1 error[E0382]: use of moved value: `u.n1`
2 --> $DIR/borrowck-union-move.rs:36:21
5 | ---- value moved here
6 LL | let a = u.n1; //~ ERROR use of moved value: `u.n1`
7 | ^^^^ value used here after move
9 = note: move occurs because `u` has type `Unn`, which does not implement the `Copy` trait
11 error[E0382]: use of moved value: `u`
12 --> $DIR/borrowck-union-move.rs:41:21
15 | ---- value moved here
16 LL | let a = u; //~ ERROR use of partially moved value: `u`
17 | ^ value used here after move
19 = note: move occurs because `u` has type `Unn`, which does not implement the `Copy` trait
21 error[E0382]: use of moved value: `u.n2`
22 --> $DIR/borrowck-union-move.rs:46:21
25 | ---- value moved here
26 LL | let a = u.n2; //~ ERROR use of moved value: `u.n2`
27 | ^^^^ value used here after move
29 = note: move occurs because `u` has type `Unn`, which does not implement the `Copy` trait
31 error[E0382]: use of moved value: `u.n`
32 --> $DIR/borrowck-union-move.rs:73:21
35 | --- value moved here
36 LL | let a = u.n; //~ ERROR use of moved value: `u.n`
37 | ^^^ value used here after move
39 = note: move occurs because `u` has type `Ucn`, which does not implement the `Copy` trait
41 error[E0382]: use of moved value: `u.c`
42 --> $DIR/borrowck-union-move.rs:78:21
45 | --- value moved here
46 LL | let a = u.c; //~ ERROR use of moved value: `u.c`
47 | ^^^ value used here after move
49 = note: move occurs because `u` has type `Ucn`, which does not implement the `Copy` trait
51 error[E0382]: use of moved value: `u`
52 --> $DIR/borrowck-union-move.rs:93:21
55 | --- value moved here
56 LL | let a = u; //~ ERROR use of partially moved value: `u`
57 | ^ value used here after move
59 = note: move occurs because `u` has type `Ucn`, which does not implement the `Copy` trait
61 error: aborting due to 6 previous errors
63 For more information about this error, try `rustc --explain E0382`.