]> git.lizzy.rs Git - rust.git/blob - tests/ui/abi/issues/issue-22565-rust-call.stderr
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / abi / issues / issue-22565-rust-call.stderr
1 error[E0277]: functions with the "rust-call" ABI must take a single non-self tuple argument
2   --> $DIR/issue-22565-rust-call.rs:3:1
3    |
4 LL | extern "rust-call" fn b(_i: i32) {}
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `i32`
6
7 error: functions with the "rust-call" ABI must take a single non-self tuple argument
8   --> $DIR/issue-22565-rust-call.rs:17:5
9    |
10 LL |     extern "rust-call" fn bar() {}
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: functions with the "rust-call" ABI must take a single non-self tuple argument
14   --> $DIR/issue-22565-rust-call.rs:22:5
15    |
16 LL |     extern "rust-call" fn a() {}
17    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: functions with the "rust-call" ABI must take a single non-self tuple argument
20   --> $DIR/issue-22565-rust-call.rs:7:5
21    |
22 LL |     extern "rust-call" fn a();
23    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error: functions with the "rust-call" ABI must take a single non-self tuple argument
26   --> $DIR/issue-22565-rust-call.rs:10:5
27    |
28 LL |     extern "rust-call" fn b() {}
29    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 error: aborting due to 5 previous errors
32
33 For more information about this error, try `rustc --explain E0277`.