]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid/invalid-variadic-function.stderr
Auto merge of #58208 - taiki-e:libstd-2018, r=Centril
[rust.git] / src / test / ui / invalid / invalid-variadic-function.stderr
1 error: only foreign functions are allowed to be variadic
2   --> $DIR/invalid-variadic-function.rs:1:26
3    |
4 LL | extern "C" fn foo(x: u8, ...);
5    |                          ^^^
6
7 error: expected one of `->`, `where`, or `{`, found `;`
8   --> $DIR/invalid-variadic-function.rs:1:30
9    |
10 LL | extern "C" fn foo(x: u8, ...);
11    |                              ^ expected one of `->`, `where`, or `{` here
12
13 error: aborting due to 2 previous errors
14