fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
519 B15 linesraw
1error[E0743]: only foreign functions are allowed to be C-variadic
2  --> $DIR/invalid-variadic-function.rs:1:26
3   |
4LL | extern "C" fn foo(x: u8, ...);
5   |                          ^^^
6
7error: expected one of `->`, `where`, or `{`, found `;`
8  --> $DIR/invalid-variadic-function.rs:1:30
9   |
10LL | extern "C" fn foo(x: u8, ...);
11   |                              ^ expected one of `->`, `where`, or `{` here
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0743`.