rust/tests/ui/delegation/fn-header-variadic.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
796 B
Plaintext
Raw Normal View History

2025-03-12 13:57:12 +00:00
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