rust/src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.stderr

13 lines
466 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0507]: cannot move out of dereference of raw pointer
2018-12-25 09:56:47 -06:00
--> $DIR/borrowck-move-from-unsafe-ptr.rs:2:13
2018-08-08 07:28:26 -05:00
|
LL | let y = *x; //~ ERROR cannot move out of dereference of raw pointer
| ^^
| |
| cannot move out of dereference of raw pointer
| help: consider using a reference instead: `&*x`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0507`.