]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/miri_unleashed/abi-mismatch.stderr
Rollup merge of #84083 - ltratt:threadid_doc_tweak, r=dtolnay
[rust.git] / src / test / ui / consts / miri_unleashed / abi-mismatch.stderr
1 error[E0080]: could not evaluate static initializer
2   --> $DIR/abi-mismatch.rs:10:5
3    |
4 LL |     my_fn();
5    |     ^^^^^^^
6    |     |
7    |     calling a function with calling convention C using calling convention Rust
8    |     inside `call_rust_fn` at $DIR/abi-mismatch.rs:10:5
9 ...
10 LL | static VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) });
11    |                  --------------------------------------------------------------------- inside `VAL` at $DIR/abi-mismatch.rs:16:18
12
13 warning: skipping const checks
14    |
15 help: skipping check for `const_fn_fn_ptr_basics` feature
16   --> $DIR/abi-mismatch.rs:9:23
17    |
18 LL | const fn call_rust_fn(my_fn: extern "Rust" fn()) {
19    |                       ^^^^^
20 help: skipping check for `const_fn_fn_ptr_basics` feature
21   --> $DIR/abi-mismatch.rs:10:5
22    |
23 LL |     my_fn();
24    |     ^^^^^
25 help: skipping check that does not even have a feature gate
26   --> $DIR/abi-mismatch.rs:10:5
27    |
28 LL |     my_fn();
29    |     ^^^^^^^
30
31 error: aborting due to previous error; 1 warning emitted
32
33 For more information about this error, try `rustc --explain E0080`.