]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-20801.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / issues / issue-20801.rs
index 6f8ce66d8f288446dd705049d9698392fcff8140..35d6f8c0fae135c13eab3fda8bd174779c09e758 100644 (file)
@@ -24,14 +24,14 @@ fn const_ptr() -> *const T {
 
 pub fn main() {
     let a = unsafe { *mut_ref() };
-    //~^ ERROR cannot move out of borrowed content
+    //~^ ERROR cannot move out of a mutable reference
 
     let b = unsafe { *imm_ref() };
-    //~^ ERROR cannot move out of borrowed content
+    //~^ ERROR cannot move out of a shared reference
 
     let c = unsafe { *mut_ptr() };
-    //~^ ERROR cannot move out of dereference of raw pointer
+    //~^ ERROR cannot move out of a raw pointer
 
     let d = unsafe { *const_ptr() };
-    //~^ ERROR cannot move out of dereference of raw pointer
+    //~^ ERROR cannot move out of a raw pointer
 }