rust/src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.nll.stderr
2018-12-25 21:08:33 -07:00

13 lines
455 B
Plaintext

error[E0507]: cannot move out of dereference of raw pointer
--> $DIR/borrowck-move-from-unsafe-ptr.rs:2:13
|
LL | let y = *x; //~ ERROR cannot move out of dereference of raw pointer
| ^^
| |
| cannot move out of dereference of raw pointer
| help: consider removing the `*`: `x`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0507`.