]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/move-from-union-field-issue-66500.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / borrowck / move-from-union-field-issue-66500.stderr
1 error[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    |
4 LL |     *u.a
5    |     ^^^^ move occurs because `*u.a` has type `String`, which does not implement the `Copy` trait
6
7 error[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    |
10 LL |     *u.b
11    |     ^^^^ move occurs because `*u.b` has type `String`, which does not implement the `Copy` trait
12
13 error[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    |
16 LL |     *u.c
17    |     ^^^^ move occurs because `*u.c` has type `String`, which does not implement the `Copy` trait
18
19 error[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    |
22 LL |     *u.d
23    |     ^^^^ move occurs because `*u.d` has type `String`, which does not implement the `Copy` trait
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0507`.