fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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