]> git.lizzy.rs Git - rust.git/blob - tests/ui/std-uncopyable-atomics.stderr
Auto merge of #106742 - compiler-errors:new-solver-make-it-not-ice, r=lcnr
[rust.git] / tests / ui / std-uncopyable-atomics.stderr
1 error[E0507]: cannot move out of a shared reference
2   --> $DIR/std-uncopyable-atomics.rs:9:13
3    |
4 LL |     let x = *&x;
5    |             ^^^ move occurs because value has type `std::sync::atomic::AtomicBool`, which does not implement the `Copy` trait
6    |
7 help: consider removing the dereference here
8    |
9 LL -     let x = *&x;
10 LL +     let x = &x;
11    |
12
13 error[E0507]: cannot move out of a shared reference
14   --> $DIR/std-uncopyable-atomics.rs:11:13
15    |
16 LL |     let x = *&x;
17    |             ^^^ move occurs because value has type `std::sync::atomic::AtomicIsize`, which does not implement the `Copy` trait
18    |
19 help: consider removing the dereference here
20    |
21 LL -     let x = *&x;
22 LL +     let x = &x;
23    |
24
25 error[E0507]: cannot move out of a shared reference
26   --> $DIR/std-uncopyable-atomics.rs:13:13
27    |
28 LL |     let x = *&x;
29    |             ^^^ move occurs because value has type `std::sync::atomic::AtomicUsize`, which does not implement the `Copy` trait
30    |
31 help: consider removing the dereference here
32    |
33 LL -     let x = *&x;
34 LL +     let x = &x;
35    |
36
37 error[E0507]: cannot move out of a shared reference
38   --> $DIR/std-uncopyable-atomics.rs:15:13
39    |
40 LL |     let x = *&x;
41    |             ^^^ move occurs because value has type `std::sync::atomic::AtomicPtr<usize>`, which does not implement the `Copy` trait
42    |
43 help: consider removing the dereference here
44    |
45 LL -     let x = *&x;
46 LL +     let x = &x;
47    |
48
49 error: aborting due to 4 previous errors
50
51 For more information about this error, try `rustc --explain E0507`.