]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/intrinsics/zero_fn_ptr.stderr
Rollup merge of #105161 - cassaundra:numeric-literal-error, r=nnethercote
[rust.git] / src / tools / miri / tests / fail / intrinsics / zero_fn_ptr.stderr
1 error: abnormal termination: aborted execution: attempted to zero-initialize type `fn()`, which is invalid
2   --> $DIR/zero_fn_ptr.rs:LL:CC
3    |
4 LL |     unsafe { std::mem::zeroed::<fn()>() };
5    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ aborted execution: attempted to zero-initialize type `fn()`, which is invalid
6    |
7    = note: inside `main` at $DIR/zero_fn_ptr.rs:LL:CC
8
9 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
10
11 error: aborting due to previous error
12