fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
490 B12 linesraw
1error[E0507]: cannot move out of static item `X`
2  --> $DIR/issue-47215-ice-from-drop-elab.rs:17:21
3   |
4LL |         let mut x = X;
5   |                     ^
6   |                     |
7   |                     move occurs because `X` has type `std::sync::atomic::AtomicUsize`, which does not implement the `Copy` trait
8   |                     help: consider borrowing here: `&X`
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0507`.