]> 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 5115bee836bc4f9f6d8fecd7506effb6b179bd3c..aa028396be4addd688e8d8803afe4b2fad8ead75 100644 (file)
@@ -5,7 +5,7 @@
 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;