2018-08-08 12:28:26 +00:00
|
|
|
error[E0382]: use of moved value: `u.n1`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/borrowck-union-move.rs:26:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let a = u.n1;
|
|
|
|
| - value moved here
|
|
|
|
LL | let a = u.n1; //~ ERROR use of moved value: `u.n1`
|
|
|
|
| ^ value used here after move
|
|
|
|
|
|
|
|
|
= note: move occurs because `u.n1` has type `NonCopy`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error[E0382]: use of partially moved value: `u`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/borrowck-union-move.rs:31:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let a = u.n1;
|
|
|
|
| - value moved here
|
|
|
|
LL | let a = u; //~ ERROR use of partially moved value: `u`
|
|
|
|
| ^ value used here after move
|
|
|
|
|
|
|
|
|
= note: move occurs because `u.n2` has type `[type error]`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `u.n2`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/borrowck-union-move.rs:36:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let a = u.n1;
|
|
|
|
| - value moved here
|
|
|
|
LL | let a = u.n2; //~ ERROR use of moved value: `u.n2`
|
|
|
|
| ^ value used here after move
|
|
|
|
|
|
|
|
|
= note: move occurs because `u.n2` has type `[type error]`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `u.n`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/borrowck-union-move.rs:63:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let a = u.n;
|
|
|
|
| - value moved here
|
|
|
|
LL | let a = u.n; //~ ERROR use of moved value: `u.n`
|
|
|
|
| ^ value used here after move
|
|
|
|
|
|
|
|
|
= note: move occurs because `u.n` has type `NonCopy`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `u.c`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/borrowck-union-move.rs:68:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let a = u.n;
|
|
|
|
| - value moved here
|
|
|
|
LL | let a = u.c; //~ ERROR use of moved value: `u.c`
|
|
|
|
| ^ value used here after move
|
|
|
|
|
|
|
|
|
= note: move occurs because `u.c` has type `[type error]`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error[E0382]: use of partially moved value: `u`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/borrowck-union-move.rs:83:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let a = u.n;
|
|
|
|
| - value moved here
|
|
|
|
LL | let a = u; //~ ERROR use of partially moved value: `u`
|
|
|
|
| ^ value used here after move
|
|
|
|
|
|
|
|
|
= note: move occurs because `u.c` has type `[type error]`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|