fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[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 | 4LL | match x { 5 | ^ 6LL | 7LL | &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 | 13help: consider removing the borrow 14 | 15LL - &Some(_y) => (), 16LL + Some(_y) => (), 17 | 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0507`.