Files
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 16:57:12 +03:00
error: delegation to C-variadic functions is not allowed
--> $DIR/fn-header-variadic.rs:12:17
2025-03-12 16:57:12 +03:00
|
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:14:22
2025-03-12 16:57:12 +03:00
|
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