about summary refs log tree commit diff
path: root/tests/ui/delegation/fn-header-variadic.stderr
blob: 688a965fb4d5c3d16785715b57949a5d666efc73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: delegation to C-variadic functions is not allowed
  --> $DIR/fn-header-variadic.rs:11:17
   |
LL |     pub unsafe extern "C" fn variadic_fn(n: usize, mut args: ...) {}
   |     ------------------------------------------------------------- callee defined here
...
LL | reuse to_reuse::variadic_fn;
   |                 ^^^^^^^^^^^

error: delegation to C-variadic functions is not allowed
  --> $DIR/fn-header-variadic.rs:13:22
   |
LL | reuse fn_header_aux::variadic_fn_extern;
   |                      ^^^^^^^^^^^^^^^^^^
   |
  ::: $DIR/auxiliary/fn-header-aux.rs:7:1
   |
LL | pub unsafe extern "C" fn variadic_fn_extern(n: usize, mut args: ...) {}
   | -------------------------------------------------------------------- callee defined here

error: aborting due to 2 previous errors