1 error[E0382]: use of moved value: `foo`
2 --> $DIR/issue-17385.rs:19:11
5 | --- move occurs because `foo` has type `X`, which does not implement the `Copy` trait
10 | ^ value used here after move
12 error[E0382]: use of moved value: `e`
13 --> $DIR/issue-17385.rs:25:11
15 LL | let e = Enum::Variant2;
16 | - move occurs because `e` has type `Enum`, which does not implement the `Copy` trait
20 | ^ value used here after move
22 error: aborting due to 2 previous errors
24 For more information about this error, try `rustc --explain E0382`.