about summary refs log tree commit diff
path: root/src/test/ui/invalid/invalid-variadic-function.stderr
blob: 7a0b8066fd52a81e67a4edce949f8a68d9aaf170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: only foreign functions are allowed to be 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