| error: Undefined Behavior: using uninitialized data, but this operation requires initialized memory |
| --> $DIR/return_pointer_aliasing.rs:LL:CC |
| | |
| LL | unsafe { ptr.read() }; |
| | ^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory |
| | |
| = 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 |
| = note: BACKTRACE: |
| = note: inside `myfun` at $DIR/return_pointer_aliasing.rs:LL:CC |
| note: inside `main` |
| --> $DIR/return_pointer_aliasing.rs:LL:CC |
| | |
| LL | Call(*ptr = myfun(ptr), ReturnTo(after_call), UnwindContinue()) |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace |
| |
| error: aborting due to 1 previous error |
| |