Function signatures with the `variadic` member set are actually C-variadic functions. Make this a little more explicit by renaming the `variadic` boolean value, `c_variadic`.
14 lines
444 B
Text
14 lines
444 B
Text
error: only foreign functions are allowed to be C-variadic
|
|
--> $DIR/invalid-variadic-function.rs:1:26
|
|
|
|
|
LL | extern "C" fn foo(x: u8, ...);
|
|
| ^^^
|
|
|
|
error: expected one of `->`, `where`, or `{`, found `;`
|
|
--> $DIR/invalid-variadic-function.rs:1:30
|
|
|
|
|
LL | extern "C" fn foo(x: u8, ...);
|
|
| ^ expected one of `->`, `where`, or `{` here
|
|
|
|
error: aborting due to 2 previous errors
|
|
|