]> git.lizzy.rs Git - rust.git/blob - src/test/ui/std-uncopyable-atomics.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / 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    |             ^^^
6    |             |
7    |             move occurs because value has type `std::sync::atomic::AtomicBool`, which does not implement the `Copy` trait
8    |             help: consider removing the `*`: `&x`
9
10 error[E0507]: cannot move out of a shared reference
11   --> $DIR/std-uncopyable-atomics.rs:11:13
12    |
13 LL |     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 removing the `*`: `&x`
18
19 error[E0507]: cannot move out of a shared reference
20   --> $DIR/std-uncopyable-atomics.rs:13:13
21    |
22 LL |     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 removing the `*`: `&x`
27
28 error[E0507]: cannot move out of a shared reference
29   --> $DIR/std-uncopyable-atomics.rs:15:13
30    |
31 LL |     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 removing the `*`: `&x`
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0507`.