fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0382]: use of moved value: `foo` 2 --> $DIR/issue-17385.rs:18:5 3 | 4LL | let foo = X(1); 5 | --- move occurs because `foo` has type `X`, which does not implement the `Copy` trait 6LL | drop(foo); 7 | --- value moved here 8LL | match foo { 9 | ^^^^^^^^^ value used here after move 10 11error[E0382]: use of moved value: `e` 12 --> $DIR/issue-17385.rs:25:11 13 | 14LL | let e = Enum::Variant2; 15 | - move occurs because `e` has type `Enum`, which does not implement the `Copy` trait 16LL | drop(e); 17 | - value moved here 18LL | match e { 19 | ^ value used here after move 20 21error: aborting due to 2 previous errors 22 23For more information about this error, try `rustc --explain E0382`.