]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-17718-static-move.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / issues / issue-17718-static-move.stderr
index c3e6267d30fff5df9d33486bc14990a41c0af02b..984534bfb8b86cbe19adeef35ac5699d7343c72f 100644 (file)
@@ -1,10 +1,10 @@
-error[E0507]: cannot move out of static item
+error[E0507]: cannot move out of static item `FOO`
   --> $DIR/issue-17718-static-move.rs:6:14
    |
 LL |     let _a = FOO;
    |              ^^^
    |              |
-   |              cannot move out of static item
+   |              move occurs because `FOO` has type `Foo`, which does not implement the `Copy` trait
    |              help: consider borrowing here: `&FOO`
 
 error: aborting due to previous error