about summary refs log tree commit diff
path: root/tests/ui/abi/issues/issue-22565-rust-call.stderr
blob: 0fd3285cd3a52bb2117368fce7bbbdb2bb2d21e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
error[E0277]: functions with the "rust-call" ABI must take a single non-self tuple argument
  --> $DIR/issue-22565-rust-call.rs:3:1
   |
LL | extern "rust-call" fn b(_i: i32) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `i32`

error: functions with the "rust-call" ABI must take a single non-self tuple argument
  --> $DIR/issue-22565-rust-call.rs:17:5
   |
LL |     extern "rust-call" fn bar() {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: functions with the "rust-call" ABI must take a single non-self tuple argument
  --> $DIR/issue-22565-rust-call.rs:22:5
   |
LL |     extern "rust-call" fn a() {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: functions with the "rust-call" ABI must take a single non-self tuple argument
  --> $DIR/issue-22565-rust-call.rs:7:5
   |
LL |     extern "rust-call" fn a();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: functions with the "rust-call" ABI must take a single non-self tuple argument
  --> $DIR/issue-22565-rust-call.rs:10:5
   |
LL |     extern "rust-call" fn b() {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0277]: functions with the "rust-call" ABI must take a single non-self tuple argument
  --> $DIR/issue-22565-rust-call.rs:27:7
   |
LL |     b(10);
   |       ^^ the trait `Tuple` is not implemented for `i32`

error: functions with the "rust-call" ABI must take a single non-self tuple argument
  --> $DIR/issue-22565-rust-call.rs:29:5
   |
LL |     Foo::bar();
   |     ^^^^^^^^^^

error: functions with the "rust-call" ABI must take a single non-self tuple argument
  --> $DIR/issue-22565-rust-call.rs:31:5
   |
LL |     <Foo as Tr>::a();
   |     ^^^^^^^^^^^^^^^^

error: functions with the "rust-call" ABI must take a single non-self tuple argument
  --> $DIR/issue-22565-rust-call.rs:33:5
   |
LL |     <Foo as Tr>::b();
   |     ^^^^^^^^^^^^^^^^

error: aborting due to 9 previous errors

For more information about this error, try `rustc --explain E0277`.