Variadic parameters have been used on a non-C ABI function.
Erroneous code example:
#![feature(unboxed_closures)]
extern "rust-call" {
fn foo(x: u8, ...); // error!
}
RunRust only supports variadic parameters for interoperability with C code in its FFI. As such, variadic parameters can only be used with functions which are using the C ABI. To fix such code, put them in an extern āCā block:
extern "C" {
fn foo (x: u8, ...);
}
Run