1 error[E0507]: cannot move out of `hellothere.x` as enum variant `Bar` which is behind a shared reference
2 --> $DIR/moves-based-on-type-block-bad.rs:22:19
4 LL | match hellothere.x {
6 LL | box E::Foo(_) => {}
7 LL | box E::Bar(x) => println!("{}", x.to_string()),
11 | move occurs because `x` has type `Box<isize>`, which does not implement the `Copy` trait
13 help: consider borrowing here
15 LL | match &hellothere.x {
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0507`.