2019-12-15 05:08:43 -06:00
|
|
|
error[E0507]: cannot move out of `*u.a` which is behind a shared reference
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/move-from-union-field-issue-66500.rs:12:5
|
2019-12-15 05:08:43 -06:00
|
|
|
|
|
|
|
|
LL | *u.a
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^ move occurs because `*u.a` has type `String`, which does not implement the `Copy` trait
|
2019-12-15 05:08:43 -06:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of `*u.b` which is behind a mutable reference
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/move-from-union-field-issue-66500.rs:16:5
|
2019-12-15 05:08:43 -06:00
|
|
|
|
|
|
|
|
LL | *u.b
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^ move occurs because `*u.b` has type `String`, which does not implement the `Copy` trait
|
2019-12-15 05:08:43 -06:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of `*u.c` which is behind a raw pointer
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/move-from-union-field-issue-66500.rs:20:5
|
2019-12-15 05:08:43 -06:00
|
|
|
|
|
|
|
|
LL | *u.c
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^ move occurs because `*u.c` has type `String`, which does not implement the `Copy` trait
|
2019-12-15 05:08:43 -06:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of `*u.d` which is behind a raw pointer
|
2022-06-29 21:33:18 -05:00
|
|
|
--> $DIR/move-from-union-field-issue-66500.rs:24:5
|
2019-12-15 05:08:43 -06:00
|
|
|
|
|
|
|
|
LL | *u.d
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^ move occurs because `*u.d` has type `String`, which does not implement the `Copy` trait
|
2019-12-15 05:08:43 -06:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0507`.
|