blob: f57b28cbf44c60f1e8939b8ec390955d7af403e3 [file] [log] [blame] [edit]
error: Undefined Behavior: write access through <TAG> is forbidden
--> $DIR/write_to_shr.rs:LL:CC
|
LL | *xmut = 31;
| ^^^^^^^^^^ write access through <TAG> is forbidden
|
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental
= help: the accessed tag <TAG> is a child of the conflicting tag <TAG>
= help: the conflicting tag <TAG> has state Frozen which forbids child write accesses
help: the accessed tag <TAG> was created here
--> $DIR/write_to_shr.rs:LL:CC
|
LL | let xmut = unsafe { &mut *(xref as *const u64 as *mut u64) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: the conflicting tag <TAG> was created here, in the initial state Frozen
--> $DIR/write_to_shr.rs:LL:CC
|
LL | let xref = unsafe { &*(x as *mut u64) };
| ^^^^^^^^^^^^^^^^^
= note: BACKTRACE (of the first span):
= note: inside `main` at $DIR/write_to_shr.rs:LL:CC
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
error: aborting due to 1 previous error