1 // revisions: stock mut_refs
3 #![cfg_attr(mut_refs, feature(const_mut_refs))]
5 static mut STDERR_BUFFER_SPACE: u8 = 0;
7 pub static mut STDERR_BUFFER: () = unsafe { *(&mut STDERR_BUFFER_SPACE) = 42; };
8 //[mut_refs]~^ ERROR could not evaluate static initializer
9 //[stock]~^^ ERROR references in statics may only refer to immutable values
10 //[stock]~| ERROR static contains unimplemented expression type