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