fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0382]: use of moved value: `u` 2 --> $DIR/borrowck-union-move.rs:26:21 3 | 4LL | let mut u = Unn { n1: NonCopy }; 5 | ----- move occurs because `u` has type `Unn`, which does not implement the `Copy` trait 6LL | let a = u.n1; 7 | ---- value moved here 8LL | let a = u.n1; 9 | ^^^^ value used here after move 10 11error[E0382]: use of moved value: `u` 12 --> $DIR/borrowck-union-move.rs:31:21 13 | 14LL | let mut u = Unn { n1: NonCopy }; 15 | ----- move occurs because `u` has type `Unn`, which does not implement the `Copy` trait 16LL | let a = u.n1; 17 | ---- value moved here 18LL | let a = u; 19 | ^ value used here after move 20 21error[E0382]: use of moved value: `u` 22 --> $DIR/borrowck-union-move.rs:36:21 23 | 24LL | let mut u = Unn { n1: NonCopy }; 25 | ----- move occurs because `u` has type `Unn`, which does not implement the `Copy` trait 26LL | let a = u.n1; 27 | ---- value moved here 28LL | let a = u.n2; 29 | ^^^^ value used here after move 30 31error[E0382]: use of moved value: `u` 32 --> $DIR/borrowck-union-move.rs:63:21 33 | 34LL | let mut u = Ucn { c: Copy }; 35 | ----- move occurs because `u` has type `Ucn`, which does not implement the `Copy` trait 36LL | let a = u.n; 37 | --- value moved here 38LL | let a = u.n; 39 | ^^^ value used here after move 40 41error[E0382]: use of moved value: `u` 42 --> $DIR/borrowck-union-move.rs:68:21 43 | 44LL | let mut u = Ucn { c: Copy }; 45 | ----- move occurs because `u` has type `Ucn`, which does not implement the `Copy` trait 46LL | let a = u.n; 47 | --- value moved here 48LL | let a = u.c; 49 | ^^^ value used here after move 50 51error[E0382]: use of moved value: `u` 52 --> $DIR/borrowck-union-move.rs:83:21 53 | 54LL | let mut u = Ucn { c: Copy }; 55 | ----- move occurs because `u` has type `Ucn`, which does not implement the `Copy` trait 56LL | let a = u.n; 57 | --- value moved here 58LL | let a = u; 59 | ^ value used here after move 60 61error: aborting due to 6 previous errors 62 63For more information about this error, try `rustc --explain E0382`.