]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/miri_unleashed/abi-mismatch.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / consts / miri_unleashed / abi-mismatch.stderr
1 warning: skipping const checks
2 --> $DIR/abi-mismatch.rs:9:5
3 |
4 LL | my_fn();
5 | ^^^^^^^
6
7 warning: skipping const checks
8 --> $DIR/abi-mismatch.rs:13:39
9 |
10 LL | const VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) });
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: any use of this value will cause an error
14 --> $DIR/abi-mismatch.rs:9:5
15 |
16 LL | my_fn();
17 | ^^^^^^^
18 | |
19 | calling a function with ABI C using caller ABI Rust
20 | inside `call_rust_fn` at $DIR/abi-mismatch.rs:9:5
21 | inside `VAL` at $DIR/abi-mismatch.rs:13:17
22 ...
23 LL | const VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) });
24 | --------------------------------------------------------------------------------------
25 |
26 = note: `#[deny(const_err)]` on by default
27
28 error: aborting due to previous error; 2 warnings emitted
29