]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0743.md
Rollup merge of #62514 - stephaneyfx:box-ffi, r=nikomatsakis
[rust.git] / src / librustc_error_codes / error_codes / E0743.md
1 C-variadic has been used on a non-foreign function.
2
3 Erroneous code example:
4
5 ```compile_fail,E0743
6 fn foo2(x: u8, ...) {} // error!
7 ```
8
9 Only foreign functions can use C-variadic (`...`). It is used to give an
10 undefined number of parameters to a given function (like `printf` in C). The
11 equivalent in Rust would be to use macros directly.