1 error: only foreign or `unsafe extern "C"` functions may be C-variadic
2 --> $DIR/variadic-ffi-semantic-restrictions.rs:6:19
4 LL | fn f1_1(x: isize, ...) {}
7 error: C-variadic function must be declared with at least one named argument
8 --> $DIR/variadic-ffi-semantic-restrictions.rs:9:9
13 error: only foreign or `unsafe extern "C"` functions may be C-variadic
14 --> $DIR/variadic-ffi-semantic-restrictions.rs:9:9
19 error: only foreign or `unsafe extern "C"` functions may be C-variadic
20 --> $DIR/variadic-ffi-semantic-restrictions.rs:13:30
22 LL | extern "C" fn f2_1(x: isize, ...) {}
25 error: C-variadic function must be declared with at least one named argument
26 --> $DIR/variadic-ffi-semantic-restrictions.rs:16:20
28 LL | extern "C" fn f2_2(...) {}
31 error: only foreign or `unsafe extern "C"` functions may be C-variadic
32 --> $DIR/variadic-ffi-semantic-restrictions.rs:16:20
34 LL | extern "C" fn f2_2(...) {}
37 error: `...` must be the last argument of a C-variadic function
38 --> $DIR/variadic-ffi-semantic-restrictions.rs:20:20
40 LL | extern "C" fn f2_3(..., x: isize) {}
43 error: only foreign or `unsafe extern "C"` functions may be C-variadic
44 --> $DIR/variadic-ffi-semantic-restrictions.rs:20:20
46 LL | extern "C" fn f2_3(..., x: isize) {}
49 error: only foreign or `unsafe extern "C"` functions may be C-variadic
50 --> $DIR/variadic-ffi-semantic-restrictions.rs:24:30
52 LL | extern "C" fn f3_1(x: isize, ...) {}
55 error: C-variadic function must be declared with at least one named argument
56 --> $DIR/variadic-ffi-semantic-restrictions.rs:27:20
58 LL | extern "C" fn f3_2(...) {}
61 error: only foreign or `unsafe extern "C"` functions may be C-variadic
62 --> $DIR/variadic-ffi-semantic-restrictions.rs:27:20
64 LL | extern "C" fn f3_2(...) {}
67 error: `...` must be the last argument of a C-variadic function
68 --> $DIR/variadic-ffi-semantic-restrictions.rs:31:20
70 LL | extern "C" fn f3_3(..., x: isize) {}
73 error: only foreign or `unsafe extern "C"` functions may be C-variadic
74 --> $DIR/variadic-ffi-semantic-restrictions.rs:31:20
76 LL | extern "C" fn f3_3(..., x: isize) {}
79 error: C-variadic function must be declared with at least one named argument
80 --> $DIR/variadic-ffi-semantic-restrictions.rs:36:13
85 error: `...` must be the last argument of a C-variadic function
86 --> $DIR/variadic-ffi-semantic-restrictions.rs:38:13
88 LL | fn e_f2(..., x: isize);
91 error: only foreign or `unsafe extern "C"` functions may be C-variadic
92 --> $DIR/variadic-ffi-semantic-restrictions.rs:45:23
94 LL | fn i_f1(x: isize, ...) {}
97 error: C-variadic function must be declared with at least one named argument
98 --> $DIR/variadic-ffi-semantic-restrictions.rs:47:13
103 error: only foreign or `unsafe extern "C"` functions may be C-variadic
104 --> $DIR/variadic-ffi-semantic-restrictions.rs:47:13
109 error: `...` must be the last argument of a C-variadic function
110 --> $DIR/variadic-ffi-semantic-restrictions.rs:50:13
112 LL | fn i_f3(..., x: isize, ...) {}
115 error: only foreign or `unsafe extern "C"` functions may be C-variadic
116 --> $DIR/variadic-ffi-semantic-restrictions.rs:50:13
118 LL | fn i_f3(..., x: isize, ...) {}
121 error: only foreign or `unsafe extern "C"` functions may be C-variadic
122 --> $DIR/variadic-ffi-semantic-restrictions.rs:50:28
124 LL | fn i_f3(..., x: isize, ...) {}
127 error: `...` must be the last argument of a C-variadic function
128 --> $DIR/variadic-ffi-semantic-restrictions.rs:54:13
130 LL | fn i_f4(..., x: isize, ...) {}
133 error: only foreign or `unsafe extern "C"` functions may be C-variadic
134 --> $DIR/variadic-ffi-semantic-restrictions.rs:54:13
136 LL | fn i_f4(..., x: isize, ...) {}
139 error: only foreign or `unsafe extern "C"` functions may be C-variadic
140 --> $DIR/variadic-ffi-semantic-restrictions.rs:54:28
142 LL | fn i_f4(..., x: isize, ...) {}
145 error: only foreign or `unsafe extern "C"` functions may be C-variadic
146 --> $DIR/variadic-ffi-semantic-restrictions.rs:61:23
148 LL | fn t_f1(x: isize, ...) {}
151 error: only foreign or `unsafe extern "C"` functions may be C-variadic
152 --> $DIR/variadic-ffi-semantic-restrictions.rs:63:23
154 LL | fn t_f2(x: isize, ...);
157 error: C-variadic function must be declared with at least one named argument
158 --> $DIR/variadic-ffi-semantic-restrictions.rs:65:13
163 error: only foreign or `unsafe extern "C"` functions may be C-variadic
164 --> $DIR/variadic-ffi-semantic-restrictions.rs:65:13
169 error: C-variadic function must be declared with at least one named argument
170 --> $DIR/variadic-ffi-semantic-restrictions.rs:68:13
175 error: only foreign or `unsafe extern "C"` functions may be C-variadic
176 --> $DIR/variadic-ffi-semantic-restrictions.rs:68:13
181 error: `...` must be the last argument of a C-variadic function
182 --> $DIR/variadic-ffi-semantic-restrictions.rs:71:13
184 LL | fn t_f5(..., x: isize) {}
187 error: only foreign or `unsafe extern "C"` functions may be C-variadic
188 --> $DIR/variadic-ffi-semantic-restrictions.rs:71:13
190 LL | fn t_f5(..., x: isize) {}
193 error: `...` must be the last argument of a C-variadic function
194 --> $DIR/variadic-ffi-semantic-restrictions.rs:74:13
196 LL | fn t_f6(..., x: isize);
199 error: only foreign or `unsafe extern "C"` functions may be C-variadic
200 --> $DIR/variadic-ffi-semantic-restrictions.rs:74:13
202 LL | fn t_f6(..., x: isize);
205 error: aborting due to 34 previous errors