1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/issue-20801.rs:36:22
4 LL | let a = unsafe { *mut_ref() };
5 | ^^^^^^^^^^ cannot move out of borrowed content
7 error[E0507]: cannot move out of borrowed content
8 --> $DIR/issue-20801.rs:39:22
10 LL | let b = unsafe { *imm_ref() };
11 | ^^^^^^^^^^ cannot move out of borrowed content
13 error[E0507]: cannot move out of dereference of raw pointer
14 --> $DIR/issue-20801.rs:42:22
16 LL | let c = unsafe { *mut_ptr() };
17 | ^^^^^^^^^^ cannot move out of dereference of raw pointer
19 error[E0507]: cannot move out of dereference of raw pointer
20 --> $DIR/issue-20801.rs:45:22
22 LL | let d = unsafe { *const_ptr() };
23 | ^^^^^^^^^^^^ cannot move out of dereference of raw pointer
25 error: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0507`.