]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/function_calls/check_callback_abi.stderr
Rollup merge of #104439 - ferrocene:pa-generate-copyright, r=pnkfelix
[rust.git] / src / tools / miri / tests / fail / function_calls / check_callback_abi.stderr
1 error: Undefined Behavior: calling a function with ABI C using caller ABI Rust
2   --> $DIR/check_callback_abi.rs:LL:CC
3    |
4 LL | /         std::intrinsics::r#try(
5 LL | |
6 LL | |             std::mem::transmute::<extern "C" fn(*mut u8), _>(try_fn),
7 LL | |             std::ptr::null_mut(),
8 LL | |             |_, _| unreachable!(),
9 LL | |         );
10    | |_________^ calling a function with ABI C using caller ABI Rust
11    |
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:
15    = note: inside `main` at $DIR/check_callback_abi.rs:LL:CC
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