blob: b8508507acebc9240e3cc090dcd8e037c74d221d [file]
// { dg-options "-w" }
#![feature(no_core)]
#![no_core]
#![feature(raw_ref_op)]
const pq1: () = {
let mut x = 2;
&raw mut x;
}; //~ mutable reference
static B: () = {
let mut x = 2;
&raw mut x;
}; //~ mutable reference
static mut C: () = {
let mut x = 2;
&raw mut x;
}; //~ mutable reference
const fn foo() {
let mut x = 0;
let y = &raw mut x; //~ mutable reference
}
fn main() {}