|
1 | 1 | error[E0382]: use of moved value: `foo.x`
|
2 |
| - --> $DIR/fields-move.rs:38:42 |
| 2 | + --> $DIR/fields-move.rs:28:9 |
3 | 3 | |
|
4 | 4 | LL | $foo.x
|
5 | 5 | | ------ value moved here
|
6 | 6 | ...
|
| 7 | +LL | $foo.x //~ ERROR use of moved value: `foo.x` |
| 8 | + | ^^^^^^ value used here after move |
| 9 | +... |
7 | 10 | LL | assert_two_copies(copy_modern!(foo), foo.x); //~ ERROR use of moved value: `foo.x`
|
8 |
| - | ^^^^^ value used here after move |
| 11 | + | ----- value moved here |
| 12 | +LL | assert_two_copies(copy_legacy!(foo), foo.x); //~ ERROR use of moved value: `foo.x` |
| 13 | + | ----------------- in this macro invocation |
9 | 14 | |
|
10 | 15 | = note: move occurs because `foo.x` has type `NonCopy`, which does not implement the `Copy` trait
|
11 | 16 |
|
12 | 17 | error[E0382]: use of moved value: `foo.x`
|
13 |
| - --> $DIR/fields-move.rs:28:9 |
| 18 | + --> $DIR/fields-move.rs:38:42 |
14 | 19 | |
|
15 | 20 | LL | $foo.x
|
16 | 21 | | ------ value moved here
|
17 | 22 | ...
|
18 |
| -LL | $foo.x //~ ERROR use of moved value: `foo.x` |
19 |
| - | ^^^^^^ value used here after move |
20 |
| -... |
21 | 23 | LL | assert_two_copies(copy_modern!(foo), foo.x); //~ ERROR use of moved value: `foo.x`
|
22 |
| - | ----- value moved here |
23 |
| -LL | assert_two_copies(copy_legacy!(foo), foo.x); //~ ERROR use of moved value: `foo.x` |
24 |
| - | ----------------- in this macro invocation |
| 24 | + | ^^^^^ value used here after move |
25 | 25 | |
|
26 | 26 | = note: move occurs because `foo.x` has type `NonCopy`, which does not implement the `Copy` trait
|
27 | 27 |
|
|
0 commit comments