about summary refs log tree commit diff
path: root/src/test/ui/invalid-variadic-function.stderr
blob: 15a908b3f00f22f12b6f97f14661d00b663da95d (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:11:26
   |
11 | extern "C" fn foo(x: u8, ...);
   |                          ^^^

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

error: aborting due to 2 previous errors