@@ -88,13 +88,13 @@ error: `...` must be the last argument of a C-variadic function
88
88
LL | fn e_f2(..., x: isize);
89
89
| ^^^
90
90
91
- error: defining functions with C-variadic arguments is only allowed for free functions with the "C" or "C-unwind" calling convention
91
+ error: associated functions cannot have a C variable argument list
92
92
--> $DIR/variadic-ffi-semantic-restrictions.rs:52:23
93
93
|
94
94
LL | fn i_f1(x: isize, ...) {}
95
95
| ^^^
96
96
97
- error: defining functions with C-variadic arguments is only allowed for free functions with the "C" or "C-unwind" calling convention
97
+ error: associated functions cannot have a C variable argument list
98
98
--> $DIR/variadic-ffi-semantic-restrictions.rs:54:13
99
99
|
100
100
LL | fn i_f2(...) {}
@@ -106,7 +106,7 @@ error: `...` must be the last argument of a C-variadic function
106
106
LL | fn i_f3(..., x: isize, ...) {}
107
107
| ^^^
108
108
109
- error: defining functions with C-variadic arguments is only allowed for free functions with the "C" or "C-unwind" calling convention
109
+ error: associated functions cannot have a C variable argument list
110
110
--> $DIR/variadic-ffi-semantic-restrictions.rs:56:28
111
111
|
112
112
LL | fn i_f3(..., x: isize, ...) {}
@@ -118,7 +118,7 @@ error: `...` must be the last argument of a C-variadic function
118
118
LL | fn i_f4(..., x: isize, ...) {}
119
119
| ^^^
120
120
121
- error: defining functions with C-variadic arguments is only allowed for free functions with the "C" or "C-unwind" calling convention
121
+ error: associated functions cannot have a C variable argument list
122
122
--> $DIR/variadic-ffi-semantic-restrictions.rs:59:28
123
123
|
124
124
LL | fn i_f4(..., x: isize, ...) {}
@@ -132,31 +132,31 @@ LL | const fn i_f5(x: isize, ...) {}
132
132
| |
133
133
| `const` because of this
134
134
135
- error: defining functions with C-variadic arguments is only allowed for free functions with the "C" or "C-unwind" calling convention
135
+ error: associated functions cannot have a C variable argument list
136
136
--> $DIR/variadic-ffi-semantic-restrictions.rs:62:29
137
137
|
138
138
LL | const fn i_f5(x: isize, ...) {}
139
139
| ^^^
140
140
141
- error: defining functions with C-variadic arguments is only allowed for free functions with the "C" or "C-unwind" calling convention
141
+ error: associated functions cannot have a C variable argument list
142
142
--> $DIR/variadic-ffi-semantic-restrictions.rs:69:23
143
143
|
144
144
LL | fn t_f1(x: isize, ...) {}
145
145
| ^^^
146
146
147
- error: defining functions with C-variadic arguments is only allowed for free functions with the "C" or "C-unwind" calling convention
147
+ error: associated functions cannot have a C variable argument list
148
148
--> $DIR/variadic-ffi-semantic-restrictions.rs:71:23
149
149
|
150
150
LL | fn t_f2(x: isize, ...);
151
151
| ^^^
152
152
153
- error: defining functions with C-variadic arguments is only allowed for free functions with the "C" or "C-unwind" calling convention
153
+ error: associated functions cannot have a C variable argument list
154
154
--> $DIR/variadic-ffi-semantic-restrictions.rs:73:13
155
155
|
156
156
LL | fn t_f3(...) {}
157
157
| ^^^
158
158
159
- error: defining functions with C-variadic arguments is only allowed for free functions with the "C" or "C-unwind" calling convention
159
+ error: associated functions cannot have a C variable argument list
160
160
--> $DIR/variadic-ffi-semantic-restrictions.rs:75:13
161
161
|
162
162
LL | fn t_f4(...);
0 commit comments