]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0507]: cannot move out of borrowed content |
48663c56 | 2 | --> $DIR/moves-based-on-type-block-bad.rs:22:19 |
ff7c6d11 | 3 | | |
532ac7d7 | 4 | LL | match hellothere.x { |
48663c56 XL |
5 | | ^^^^^^^^^^^^ |
6 | | | | |
7 | | cannot move out of borrowed content | |
8 | | help: consider borrowing here: `&hellothere.x` | |
ff7c6d11 | 9 | ... |
0531ce1d | 10 | LL | box E::Bar(x) => println!("{}", x.to_string()), |
48663c56 XL |
11 | | - data moved here |
12 | | | |
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:25:28 | |
15 | | | |
16 | LL | box E::Bar(x) => println!("{}", x.to_string()), | |
17 | | ^ | |
ff7c6d11 XL |
18 | |
19 | error: aborting due to previous error | |
20 | ||
0531ce1d | 21 | For more information about this error, try `rustc --explain E0507`. |