]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-17718-static-move.stderr
Rollup merge of #60492 - acrrd:issues/54054_chain, r=SimonSapin
[rust.git] / src / test / ui / issues / issue-17718-static-move.stderr
index 064a991e4a3d717fc6e407bb45f3eac3a9751ce6..984534bfb8b86cbe19adeef35ac5699d7343c72f 100644 (file)
@@ -1,11 +1,11 @@
-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
-   |              help: consider using a reference instead: `&FOO`
+   |              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