-error[E0382]: use of moved value: `u.n1`
+error[E0382]: use of moved value: `u`
--> $DIR/borrowck-union-move.rs:36:21
|
LL | let a = u.n1;
|
= note: move occurs because `u` has type `Unn`, which does not implement the `Copy` trait
-error[E0382]: use of moved value: `u.n2`
+error[E0382]: use of moved value: `u`
--> $DIR/borrowck-union-move.rs:46:21
|
LL | let a = u.n1;
|
= note: move occurs because `u` has type `Unn`, which does not implement the `Copy` trait
-error[E0382]: use of moved value: `u.n`
+error[E0382]: use of moved value: `u`
--> $DIR/borrowck-union-move.rs:73:21
|
LL | let a = u.n;
|
= note: move occurs because `u` has type `Ucn`, which does not implement the `Copy` trait
-error[E0382]: use of moved value: `u.c`
+error[E0382]: use of moved value: `u`
--> $DIR/borrowck-union-move.rs:78:21
|
LL | let a = u.n;