fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
839 B28 linesraw
1error[E0080]: could not evaluate static initializer
2  --> $DIR/abi-mismatch.rs:9:5
3   |
4LL |     my_fn();
5   |     ^^^^^^^ calling a function with calling convention C using calling convention Rust
6   |
7note: inside `call_rust_fn`
8  --> $DIR/abi-mismatch.rs:9:5
9   |
10LL |     my_fn();
11   |     ^^^^^^^
12note: inside `VAL`
13  --> $DIR/abi-mismatch.rs:15:18
14   |
15LL | static VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) });
16   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
18warning: skipping const checks
19   |
20help: skipping check that does not even have a feature gate
21  --> $DIR/abi-mismatch.rs:9:5
22   |
23LL |     my_fn();
24   |     ^^^^^^^
25
26error: aborting due to previous error; 1 warning emitted
27
28For more information about this error, try `rustc --explain E0080`.