1 // compile-flags: -Zunleash-the-miri-inside-of-you
3 // Make sure we cannot mutate globals.
5 static mut GLOBAL: i32 = 0;
7 const MUTATING_GLOBAL: () = {
9 GLOBAL = 99 //~ ERROR any use of this value will cause an error
10 //~^ WARN skipping const checks
11 //~| WARN skipping const checks