]> git.proxmox.com Git - rustc.git/blob - tests/ui/borrowck/borrowck-move-from-unsafe-ptr.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / borrowck / borrowck-move-from-unsafe-ptr.stderr
1 error[E0507]: cannot move out of `*x` which is behind a raw pointer
2 --> $DIR/borrowck-move-from-unsafe-ptr.rs:2:13
3 |
4 LL | let y = *x;
5 | ^^ move occurs because `*x` has type `Box<isize>`, which does not implement the `Copy` trait
6 |
7 help: consider removing the dereference here
8 |
9 LL - let y = *x;
10 LL + let y = x;
11 |
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0507`.