blob: 74259b36f351def6b5001adb6db87371b619bd3f [file]
error: Undefined Behavior: extern static `write_immutable::main::IMMUT` is declared as an mutable `static`, but the backing static is immutable
--> tests/fail/extern_static/write_immutable.rs:LL:CC
|
LL | (&raw mut IMMUT).write(7);
| ^^^^^ Undefined Behavior occurred here
|
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
error: aborting due to 1 previous error