]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/move-from-union-field-issue-66500.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / borrowck / move-from-union-field-issue-66500.stderr
CommitLineData
60c5eb7d 1error[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 |
4LL | *u.a
1b1a35ee 5 | ^^^^ move occurs because `*u.a` has type `String`, which does not implement the `Copy` trait
60c5eb7d
XL
6
7error[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 |
10LL | *u.b
1b1a35ee 11 | ^^^^ move occurs because `*u.b` has type `String`, which does not implement the `Copy` trait
60c5eb7d
XL
12
13error[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 |
16LL | *u.c
1b1a35ee 17 | ^^^^ move occurs because `*u.c` has type `String`, which does not implement the `Copy` trait
60c5eb7d
XL
18
19error[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 |
22LL | *u.d
1b1a35ee 23 | ^^^^ move occurs because `*u.d` has type `String`, which does not implement the `Copy` trait
60c5eb7d
XL
24
25error: aborting due to 4 previous errors
26
27For more information about this error, try `rustc --explain E0507`.