rust/src/test/ui/parser/variadic-ffi-3.rs
Dan Robertson 08bd4ff998
Rename variadic to c_variadic
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`.
2019-02-27 10:21:54 -05:00

6 lines
108 B
Rust

fn foo(x: isize, ...) {
//~^ ERROR: only foreign functions are allowed to be C-variadic
}
fn main() {}