1 // New test for #53818: modifying static memory at compile-time is not allowed.
2 // The test should never compile successfully
4 #![feature(const_raw_ptr_deref)]
6 use std::cell::UnsafeCell;
8 static mut FOO: u32 = 42;
9 static BOO: () = unsafe {
11 //~^ could not evaluate static initializer [E0080]