]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | error[E0507]: cannot move out of `*u.a` which is behind a shared reference |
064997fb | 2 | --> $DIR/move-from-union-field-issue-66500.rs:12:5 |
60c5eb7d XL |
3 | | |
4 | LL | *u.a | |
1b1a35ee | 5 | | ^^^^ move occurs because `*u.a` has type `String`, which does not implement the `Copy` trait |
60c5eb7d XL |
6 | |
7 | error[E0507]: cannot move out of `*u.b` which is behind a mutable reference | |
064997fb | 8 | --> $DIR/move-from-union-field-issue-66500.rs:16:5 |
60c5eb7d XL |
9 | | |
10 | LL | *u.b | |
1b1a35ee | 11 | | ^^^^ move occurs because `*u.b` has type `String`, which does not implement the `Copy` trait |
60c5eb7d XL |
12 | |
13 | error[E0507]: cannot move out of `*u.c` which is behind a raw pointer | |
064997fb | 14 | --> $DIR/move-from-union-field-issue-66500.rs:20:5 |
60c5eb7d XL |
15 | | |
16 | LL | *u.c | |
1b1a35ee | 17 | | ^^^^ move occurs because `*u.c` has type `String`, which does not implement the `Copy` trait |
60c5eb7d XL |
18 | |
19 | error[E0507]: cannot move out of `*u.d` which is behind a raw pointer | |
064997fb | 20 | --> $DIR/move-from-union-field-issue-66500.rs:24:5 |
60c5eb7d XL |
21 | | |
22 | LL | *u.d | |
1b1a35ee | 23 | | ^^^^ move occurs because `*u.d` has type `String`, which does not implement the `Copy` trait |
60c5eb7d XL |
24 | |
25 | error: aborting due to 4 previous errors | |
26 | ||
27 | For more information about this error, try `rustc --explain E0507`. |