fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.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 14error[E0382]: use of moved value: `foo.x` 15 --> $DIR/fields-move.rs:28:42 16 | 17LL | $foo.x 18 | ------ value moved here 19... 20LL | assert_two_copies(copy_modern!(foo), foo.x); 21 | ^^^^^ value used here after move 22 | 23 = note: move occurs because `foo.x` has type `NonCopy`, which does not implement the `Copy` trait 24 25error[E0382]: use of moved value: `foo.x` 26 --> $DIR/fields-move.rs:29:42 27 | 28LL | $foo.x 29 | ------ value moved here 30... 31LL | assert_two_copies(copy_legacy!(foo), foo.x); 32 | ^^^^^ value used here after move 33 | 34 = note: move occurs because `foo.x` has type `NonCopy`, which does not implement the `Copy` trait 35 36error: aborting due to 3 previous errors 37 38For more information about this error, try `rustc --explain E0382`.