]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-47215-ice-from-drop-elab.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / issue-47215-ice-from-drop-elab.stderr
1 error[E0507]: cannot move out of static item `X`
2   --> $DIR/issue-47215-ice-from-drop-elab.rs:17:21
3    |
4 LL |         let mut x = X;
5    |                     ^ move occurs because `X` has type `AtomicUsize`, which does not implement the `Copy` trait
6    |
7 help: consider borrowing here
8    |
9 LL |         let mut x = &X;
10    |                     +
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0507`.