1 // Check that `&raw mut` cannot be used to turn a `&T` into a `*mut T`.
3 #![feature(raw_ref_op)]
8 let q = &raw mut *x; //~ ERROR cannot borrow
11 unsafe fn raw_reborrow_of_raw() {
12 let x = &0 as *const i32;
14 let q = &raw mut *x; //~ ERROR cannot borrow