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