]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/move-in-static-initializer-issue-38520.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / move-in-static-initializer-issue-38520.stderr
index 9dcefac1b707e31731c8f3501386b52cb4f5c8a3..6619fb42c281a57926329cdd371602aeec659808 100644 (file)
@@ -1,14 +1,14 @@
-error[E0507]: cannot move out of borrowed content
+error[E0507]: cannot move out of a shared reference
   --> $DIR/move-in-static-initializer-issue-38520.rs:12:23
    |
 LL | static Y: usize = get(*&X);
-   |                       ^^^ cannot move out of borrowed content
+   |                       ^^^ move occurs because value has type `Foo`, which does not implement the `Copy` trait
 
-error[E0507]: cannot move out of borrowed content
+error[E0507]: cannot move out of a shared reference
   --> $DIR/move-in-static-initializer-issue-38520.rs:13:22
    |
 LL | const Z: usize = get(*&X);
-   |                      ^^^ cannot move out of borrowed content
+   |                      ^^^ move occurs because value has type `Foo`, which does not implement the `Copy` trait
 
 error: aborting due to 2 previous errors