blob: e9910816fc12f963bd53ab4fa8261800b7120e71 [file] [log] [blame]
#![allow(static_mut_refs)]
static mut STDERR_BUFFER_SPACE: u8 = 0;
pub static mut STDERR_BUFFER: () = unsafe {
*(&mut STDERR_BUFFER_SPACE) = 42;
//~^ ERROR modifying a static's initial value
};
fn main() {}