about summary refs log tree commit diff
path: root/src/test/ui/invalid/invalid-variadic-function.stderr
blob: b2dbf8b9190848ef69c0886ebb9becb71be116b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: only foreign functions are allowed to be C-variadic
  --> $DIR/invalid-variadic-function.rs:1:26
   |
LL | extern "C" fn foo(x: u8, ...);
   |                          ^^^

error: expected one of `->`, `where`, or `{`, found `;`
  --> $DIR/invalid-variadic-function.rs:1:30
   |
LL | extern "C" fn foo(x: u8, ...);
   |                              ^ expected one of `->`, `where`, or `{` here

error: aborting due to 2 previous errors