rust/tests/ui/borrowck/issue-47215-ice-from-drop-elab.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
456 B
Plaintext
Raw Normal View History

error[E0507]: cannot move out of static item `X`
2018-10-17 14:32:43 +00:00
--> $DIR/issue-47215-ice-from-drop-elab.rs:17:21
|
2019-03-09 12:03:44 +00:00
LL | let mut x = X;
| ^ move occurs because `X` has type `AtomicUsize`, which does not implement the `Copy` trait
|
help: consider borrowing here
|
LL | let mut x = &X;
| +
2018-10-17 14:32:43 +00:00
error: aborting due to 1 previous error
2018-10-17 14:32:43 +00:00
For more information about this error, try `rustc --explain E0507`.