1 // compile-flags: -Zunleash-the-miri-inside-of-you
4 // Make sure we cannot mutate globals.
6 static mut GLOBAL: i32 = 0;
8 static MUTATING_GLOBAL: () = {
11 //~^ ERROR could not evaluate static initializer
12 //~| NOTE modifying a static's initial value