fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0382]: use of moved value: `foo.x` 2 --> $DIR/fields-move.rs:18:9 3 | 4LL | $foo.x 5 | ^^^^^^ value used here after move 6... 7LL | assert_two_copies(copy_modern!(foo), foo.x); 8 | ----- value moved here 9LL | assert_two_copies(copy_legacy!(foo), foo.x); 10 | ----------------- in this macro invocation 11 | 12 = note: move occurs because `foo.x` has type `NonCopy`, which does not implement the `Copy` trait 13 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 14 15error[E0382]: use of moved value: `foo.x` 16 --> $DIR/fields-move.rs:28:42 17 | 18LL | $foo.x 19 | ------ value moved here 20... 21LL | assert_two_copies(copy_modern!(foo), foo.x); 22 | ^^^^^ value used here after move 23 | 24 = note: move occurs because `foo.x` has type `NonCopy`, which does not implement the `Copy` trait 25 26error[E0382]: use of moved value: `foo.x` 27 --> $DIR/fields-move.rs:29:42 28 | 29LL | $foo.x 30 | ------ value moved here 31... 32LL | assert_two_copies(copy_legacy!(foo), foo.x); 33 | ^^^^^ value used here after move 34 | 35 = note: move occurs because `foo.x` has type `NonCopy`, which does not implement the `Copy` trait 36 37error: aborting due to 3 previous errors 38 39For more information about this error, try `rustc --explain E0382`.