rust/src/test/ui/borrowck/move-in-static-initializer-issue-38520.mir.stderr
2018-12-25 21:08:33 -07:00

16 lines
580 B
Plaintext

error[E0507]: cannot move out of borrowed content
--> $DIR/move-in-static-initializer-issue-38520.rs:15:23
|
LL | static Y: usize = get(*&X); //[ast]~ ERROR E0507
| ^^^ cannot move out of borrowed content
error[E0507]: cannot move out of borrowed content
--> $DIR/move-in-static-initializer-issue-38520.rs:17:22
|
LL | const Z: usize = get(*&X); //[ast]~ ERROR E0507
| ^^^ cannot move out of borrowed content
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0507`.