1 error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
2 --> $DIR/borrow-raw-address-of-deref-mutability.rs:8:13
4 LL | let q = &raw mut *x;
5 | ^^^^^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
7 help: consider changing this to be a mutable reference
12 error[E0596]: cannot borrow `*x` as mutable, as it is behind a `*const` pointer
13 --> $DIR/borrow-raw-address-of-deref-mutability.rs:14:13
15 LL | let q = &raw mut *x;
16 | ^^^^^^^^^^^ `x` is a `*const` pointer, so the data it refers to cannot be borrowed as mutable
18 help: consider changing this to be a mutable pointer
20 LL | let x = &mut 0 as *const i32;
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0596`.