]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/issue-47215-ice-from-drop-elab.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / issue-47215-ice-from-drop-elab.stderr
index b09028e6c7c4ec96431497cd3f074cedc0b391a8..249a05192b282db38f60670ef5e6c53152466b3a 100644 (file)
@@ -1,11 +1,11 @@
-error[E0507]: cannot move out of thread-local static item
+error[E0507]: cannot move out of static item `X`
   --> $DIR/issue-47215-ice-from-drop-elab.rs:17:21
    |
 LL |         let mut x = X;
    |                     ^
    |                     |
-   |                     cannot move out of thread-local static item
-   |                     help: consider using a reference instead: `&X`
+   |                     move occurs because `X` has type `std::sync::atomic::AtomicUsize`, which does not implement the `Copy` trait
+   |                     help: consider borrowing here: `&X`
 
 error: aborting due to previous error