1 error[E0382]: use of moved value: `foo`
2 --> $DIR/issue-17385.rs:18:11
6 LL | match foo { //~ ERROR use of moved value
7 | ^^^ value used here after move
9 = note: move occurs because `foo` has type `X`, which does not implement the `Copy` trait
11 error[E0382]: use of moved value: `e`
12 --> $DIR/issue-17385.rs:25:11
16 LL | match e { //~ ERROR use of moved value
17 | ^ value used here after move
19 = note: move occurs because `e` has type `Enum`, which does not implement the `Copy` trait
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0382`.