1 error[E0382]: use of moved value: `u.a`
2 --> $DIR/borrowck-union-move-assign.rs:27:21
6 LL | let a = u.a; //~ ERROR use of moved value: `u.a`
7 | ^^^ value used here after move
9 = note: move occurs because `u` has type `U`, which does not implement the `Copy` trait
11 error[E0382]: use of moved value: `u.a`
12 --> $DIR/borrowck-union-move-assign.rs:33:21
15 | --- value moved here
17 LL | let a = u.a; // OK
18 | ^^^ value used here after move
20 = note: move occurs because `u` has type `U`, which does not implement the `Copy` trait
22 error[E0382]: use of moved value: `u.a`
23 --> $DIR/borrowck-union-move-assign.rs:39:21
26 | --- value moved here
28 LL | let a = u.a; // OK
29 | ^^^ value used here after move
31 = note: move occurs because `u` has type `U`, which does not implement the `Copy` trait
33 error: aborting due to 3 previous errors
35 For more information about this error, try `rustc --explain E0382`.