rust/src/test/ui/std-uncopyable-atomics.nll.stderr

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-08-14 21:03:43 -05:00
error[E0507]: cannot move out of borrowed content
2018-12-25 09:56:47 -06:00
--> $DIR/std-uncopyable-atomics.rs:9:13
2018-08-14 21:03:43 -05:00
|
2019-03-11 15:18:35 -05:00
LL | let x = *&x;
2018-08-14 21:03:43 -05:00
| ^^^
| |
| cannot move out of borrowed content
| help: consider removing the `*`: `&x`
error[E0507]: cannot move out of borrowed content
2018-12-25 09:56:47 -06:00
--> $DIR/std-uncopyable-atomics.rs:11:13
2018-08-14 21:03:43 -05:00
|
2019-03-11 15:18:35 -05:00
LL | let x = *&x;
2018-08-14 21:03:43 -05:00
| ^^^
| |
| cannot move out of borrowed content
| help: consider removing the `*`: `&x`
error[E0507]: cannot move out of borrowed content
2018-12-25 09:56:47 -06:00
--> $DIR/std-uncopyable-atomics.rs:13:13
2018-08-14 21:03:43 -05:00
|
2019-03-11 15:18:35 -05:00
LL | let x = *&x;
2018-08-14 21:03:43 -05:00
| ^^^
| |
| cannot move out of borrowed content
| help: consider removing the `*`: `&x`
error[E0507]: cannot move out of borrowed content
2018-12-25 09:56:47 -06:00
--> $DIR/std-uncopyable-atomics.rs:15:13
2018-08-14 21:03:43 -05:00
|
2019-03-11 15:18:35 -05:00
LL | let x = *&x;
2018-08-14 21:03:43 -05:00
| ^^^
| |
| cannot move out of borrowed content
| help: consider removing the `*`: `&x`
error: aborting due to 4 previous errors
2018-08-14 21:03:43 -05:00
For more information about this error, try `rustc --explain E0507`.