about summary refs log tree commit diff
path: root/src/test/ui/compile-fail-migration/borrowck/borrowck-move-from-unsafe-ptr.nll.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/compile-fail-migration/borrowck/borrowck-move-from-unsafe-ptr.nll.stderr')
-rw-r--r--src/test/ui/compile-fail-migration/borrowck/borrowck-move-from-unsafe-ptr.nll.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/compile-fail-migration/borrowck/borrowck-move-from-unsafe-ptr.nll.stderr b/src/test/ui/compile-fail-migration/borrowck/borrowck-move-from-unsafe-ptr.nll.stderr
new file mode 100644
index 00000000000..4f692bfc55e
--- /dev/null
+++ b/src/test/ui/compile-fail-migration/borrowck/borrowck-move-from-unsafe-ptr.nll.stderr
@@ -0,0 +1,12 @@
+error[E0507]: cannot move out of borrowed content
+  --> $DIR/borrowck-move-from-unsafe-ptr.rs:13:13
+   |
+LL |     let y = *x; //~ ERROR cannot move out of dereference of raw pointer
+   |             ^^
+   |             |
+   |             cannot move out of borrowed content
+   |             help: consider using a reference instead: `&*x`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0507`.