1 // revisions: stock mut_refs
3 #![cfg_attr(mut_refs, feature(const_mut_refs))]
10 let b: *mut u32 = &mut a; //[stock]~ ERROR may only refer to immutable values
11 unsafe { *b = 5; } //~ ERROR dereferencing raw pointers in constants
12 //[stock]~^ contains unimplemented expression