]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/unop-move-semantics.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / unop-move-semantics.rs
index 80f737e6c4e7a799852d2f1cfda559c21f06e604..8168da8242fd4ebd4d4e1d6c3a6950b15c01ca05 100644 (file)
@@ -21,9 +21,9 @@ fn illegal_dereference<T: Not<Output=T>>(mut x: T, y: T) {
     let m = &mut x;
     let n = &y;
 
-    !*m;  //~ ERROR: cannot move out of borrowed content
+    !*m;  //~ ERROR: cannot move out of `*m`
 
-    !*n;  //~ ERROR: cannot move out of borrowed content
+    !*n;  //~ ERROR: cannot move out of `*n`
     use_imm(n); use_mut(m);
 }
 fn main() {}