]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/miri_unleashed/mutating_global.rs
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