]> git.proxmox.com Git - rustc.git/blame - src/test/ui/moves/moves-based-on-type-block-bad.stderr
New upstream version 1.36.0+dfsg1
[rustc.git] / src / test / ui / moves / moves-based-on-type-block-bad.stderr
CommitLineData
ff7c6d11 1error[E0507]: cannot move out of borrowed content
48663c56 2 --> $DIR/moves-based-on-type-block-bad.rs:22:19
ff7c6d11 3 |
532ac7d7 4LL | match hellothere.x {
48663c56
XL
5 | ^^^^^^^^^^^^
6 | |
7 | cannot move out of borrowed content
8 | help: consider borrowing here: `&hellothere.x`
ff7c6d11 9...
0531ce1d 10LL | box E::Bar(x) => println!("{}", x.to_string()),
48663c56
XL
11 | - data moved here
12 |
13note: 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 |
16LL | box E::Bar(x) => println!("{}", x.to_string()),
17 | ^
ff7c6d11
XL
18
19error: aborting due to previous error
20
0531ce1d 21For more information about this error, try `rustc --explain E0507`.