fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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