1 error: Undefined Behavior: Data race detected between Deallocate on thread `<unnamed>` and Write on thread `<unnamed>` at ALLOC
2 --> $DIR/dealloc_write_race1.rs:LL:CC
6 LL | | ptr.0 as *mut _,
7 LL | | std::mem::size_of::<usize>(),
8 LL | | std::mem::align_of::<usize>(),
10 | |_____________^ Data race detected between Deallocate on thread `<unnamed>` and Write on thread `<unnamed>` at ALLOC
12 = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
13 = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
15 = note: inside closure at $DIR/dealloc_write_race1.rs:LL:CC
17 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
19 error: aborting due to previous error