fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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