You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Regression test for https://github.com/rust-lang/rust/issues/70673.// run-pass#![feature(thread_local)]#[thread_local]staticA:&u8 = &42;fnmain(){dbg!(*A);}
Miri reports:
[src/main.rs:11] *A = 42
error: Undefined Behavior: deallocating immutable allocation alloc1301
|
= note: deallocating immutable allocation alloc1301
= note: (no span available)
= 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
I tried this code:
Miri reports:
The text was updated successfully, but these errors were encountered: