1 error: Undefined Behavior: Data race detected between (1) Read on thread `<unnamed>` and (2) Allocate on thread `<unnamed>` at ALLOC. (1) just happened here
2 --> $DIR/alloc_read_race.rs:LL:CC
4 LL | *pointer.load(Ordering::Relaxed)
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between (1) Read on thread `<unnamed>` and (2) Allocate on thread `<unnamed>` at ALLOC. (1) just happened here
7 help: and (2) occurred earlier here
8 --> $DIR/alloc_read_race.rs:LL:CC
10 LL | pointer.store(Box::into_raw(Box::new_uninit()), Ordering::Relaxed);
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
14 = note: BACKTRACE (of the first span):
15 = note: inside closure at $DIR/alloc_read_race.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