]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/dst/dst-rvalue.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / dst / dst-rvalue.rs
index 86747dad00ddb5d735d1fd85d89551f031c3d786..aa028396be4addd688e8d8803afe4b2fad8ead75 100644 (file)
@@ -5,10 +5,10 @@
 pub fn main() {
     let _x: Box<str> = box *"hello world";
     //~^ ERROR E0161
-    //~^^ ERROR cannot move out of borrowed content
+    //~^^ ERROR cannot move out of a shared reference
 
     let array: &[isize] = &[1, 2, 3];
     let _x: Box<[isize]> = box *array;
     //~^ ERROR E0161
-    //~^^ ERROR cannot move out of borrowed content
+    //~^^ ERROR cannot move out of type `[isize]`, a non-copy slice
 }