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