@@ -88,13 +88,13 @@ error: `...` must be the last argument of a C-variadic function
8888LL | fn e_f2(..., x: isize);
8989 | ^^^
9090
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
9292 --> $DIR/variadic-ffi-semantic-restrictions.rs:52:23
9393 |
9494LL | fn i_f1(x: isize, ...) {}
9595 | ^^^
9696
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
9898 --> $DIR/variadic-ffi-semantic-restrictions.rs:54:13
9999 |
100100LL | fn i_f2(...) {}
@@ -106,7 +106,7 @@ error: `...` must be the last argument of a C-variadic function
106106LL | fn i_f3(..., x: isize, ...) {}
107107 | ^^^
108108
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
110110 --> $DIR/variadic-ffi-semantic-restrictions.rs:56:28
111111 |
112112LL | fn i_f3(..., x: isize, ...) {}
@@ -118,7 +118,7 @@ error: `...` must be the last argument of a C-variadic function
118118LL | fn i_f4(..., x: isize, ...) {}
119119 | ^^^
120120
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
122122 --> $DIR/variadic-ffi-semantic-restrictions.rs:59:28
123123 |
124124LL | fn i_f4(..., x: isize, ...) {}
@@ -132,31 +132,31 @@ LL | const fn i_f5(x: isize, ...) {}
132132 | |
133133 | `const` because of this
134134
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
136136 --> $DIR/variadic-ffi-semantic-restrictions.rs:62:29
137137 |
138138LL | const fn i_f5(x: isize, ...) {}
139139 | ^^^
140140
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
142142 --> $DIR/variadic-ffi-semantic-restrictions.rs:69:23
143143 |
144144LL | fn t_f1(x: isize, ...) {}
145145 | ^^^
146146
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
148148 --> $DIR/variadic-ffi-semantic-restrictions.rs:71:23
149149 |
150150LL | fn t_f2(x: isize, ...);
151151 | ^^^
152152
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
154154 --> $DIR/variadic-ffi-semantic-restrictions.rs:73:13
155155 |
156156LL | fn t_f3(...) {}
157157 | ^^^
158158
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
160160 --> $DIR/variadic-ffi-semantic-restrictions.rs:75:13
161161 |
162162LL | fn t_f4(...);
0 commit comments