1 error[E0382]: use of moved value: `u.n1`
2 --> $DIR/borrowck-union-move.rs:36:17
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.n1` has type `NonCopy`, which does not implement the `Copy` trait
11 error[E0382]: use of partially moved value: `u`
12 --> $DIR/borrowck-union-move.rs:41:17
16 LL | let a = u; //~ ERROR use of partially moved value: `u`
17 | ^ value used here after move
19 = note: move occurs because `u.n2` has type `[type error]`, which does not implement the `Copy` trait
21 error[E0382]: use of moved value: `u.n2`
22 --> $DIR/borrowck-union-move.rs:46:17
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.n2` has type `[type error]`, which does not implement the `Copy` trait
31 error[E0382]: use of moved value: `u.n`
32 --> $DIR/borrowck-union-move.rs:73:17
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.n` has type `NonCopy`, which does not implement the `Copy` trait
41 error[E0382]: use of moved value: `u.c`
42 --> $DIR/borrowck-union-move.rs:78:17
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.c` has type `[type error]`, which does not implement the `Copy` trait
51 error[E0382]: use of partially moved value: `u`
52 --> $DIR/borrowck-union-move.rs:93:17
56 LL | let a = u; //~ ERROR use of partially moved value: `u`
57 | ^ value used here after move
59 = note: move occurs because `u.c` has type `[type error]`, 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`.