fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
463 B12 linesraw
1error[E0507]: cannot move out of `*x` which is behind a raw pointer
2  --> $DIR/borrowck-move-from-unsafe-ptr.rs:2:13
3   |
4LL |     let y = *x;
5   |             ^^
6   |             |
7   |             move occurs because `*x` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
8   |             help: consider borrowing here: `&*x`
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0507`.