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

40 lines
1.4 KiB
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0507]: cannot move out of borrowed content
2018-12-25 08:56:47 -07:00
--> $DIR/std-uncopyable-atomics.rs:9:13
2018-08-08 14:28:26 +02:00
|
LL | let x = *&x; //~ ERROR: cannot move out of borrowed content
| ^^^
| |
| cannot move out of borrowed content
| help: consider using a reference instead: `&*&x`
error[E0507]: cannot move out of borrowed content
2018-12-25 08:56:47 -07:00
--> $DIR/std-uncopyable-atomics.rs:11:13
2018-08-08 14:28:26 +02:00
|
LL | let x = *&x; //~ ERROR: cannot move out of borrowed content
| ^^^
| |
| cannot move out of borrowed content
| help: consider using a reference instead: `&*&x`
error[E0507]: cannot move out of borrowed content
2018-12-25 08:56:47 -07:00
--> $DIR/std-uncopyable-atomics.rs:13:13
2018-08-08 14:28:26 +02:00
|
LL | let x = *&x; //~ ERROR: cannot move out of borrowed content
| ^^^
| |
| cannot move out of borrowed content
| help: consider using a reference instead: `&*&x`
error[E0507]: cannot move out of borrowed content
2018-12-25 08:56:47 -07:00
--> $DIR/std-uncopyable-atomics.rs:15:13
2018-08-08 14:28:26 +02:00
|
LL | let x = *&x; //~ ERROR: cannot move out of borrowed content
| ^^^
| |
| cannot move out of borrowed content
| help: consider using a reference instead: `&*&x`
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0507`.