]> git.proxmox.com Git - rustc.git/blob - src/test/ui/moves/issue-99470-move-out-of-some.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / moves / issue-99470-move-out-of-some.stderr
1 error[E0507]: cannot move out of `x` as enum variant `Some` which is behind a shared reference
2 --> $DIR/issue-99470-move-out-of-some.rs:4:11
3 |
4 LL | match x {
5 | ^
6 LL |
7 LL | &Some(_y) => (),
8 | ---------
9 | | |
10 | | data moved here
11 | | move occurs because `_y` has type `Box<i32>`, which does not implement the `Copy` trait
12 | help: consider removing the `&`: `Some(_y)`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0507`.