]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/dangling_pointers/storage_dead_dangling.stderr
Rollup merge of #102016 - lcnr:given-OutlivesEnvironment, r=jackh726
[rust.git] / src / tools / miri / tests / fail / dangling_pointers / storage_dead_dangling.stderr
1 error: Undefined Behavior: dereferencing pointer failed: $HEX[noalloc] is a dangling pointer (it has no provenance)
2   --> $DIR/storage_dead_dangling.rs:LL:CC
3    |
4 LL |     unsafe { &mut *(LEAK as *mut i32) };
5    |              ^^^^^^^^^^^^^^^^^^^^^^^^ dereferencing pointer failed: $HEX[noalloc] is a dangling pointer (it has no provenance)
6    |
7    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
9    = note: BACKTRACE:
10    = note: inside `evil` at $DIR/storage_dead_dangling.rs:LL:CC
11 note: inside `main` at $DIR/storage_dead_dangling.rs:LL:CC
12   --> $DIR/storage_dead_dangling.rs:LL:CC
13    |
14 LL |     evil();
15    |     ^^^^^^
16
17 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
18
19 error: aborting due to previous error
20