]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/binop/binop-move-semantics.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / binop / binop-move-semantics.rs
index 17dec59404201c295013a9b5ddb069817b983526..b5133ea7c92a0f69f863ac7a571613934ad3dddb 100644 (file)
@@ -27,9 +27,9 @@ fn illegal_dereference<T: Add<Output=()>>(mut x: T, y: T) {
     let m = &mut x;
     let n = &y;
 
-    *m  //~ ERROR: cannot move out of borrowed content
+    *m  //~ ERROR: cannot move
     +
-    *n;  //~ ERROR: cannot move out of borrowed content
+    *n;  //~ ERROR: cannot move
     use_imm(n); use_mut(m);
 }
 struct Foo;