1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/moves-based-on-type-block-bad.rs:34:19
4 LL | match hellothere.x { //~ ERROR cannot move out
7 | cannot move out of borrowed content
8 | help: consider borrowing here: `&hellothere.x`
10 LL | box E::Bar(x) => println!("{}", x.to_string()),
13 note: move occurs because `x` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
14 --> $DIR/moves-based-on-type-block-bad.rs:37:28
16 LL | box E::Bar(x) => println!("{}", x.to_string()),
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0507`.