Files
rust/tests/ui/c-variadic/no-closure.stderr

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

27 lines
751 B
Plaintext
Raw Normal View History

error: unexpected `...`
2025-09-03 16:56:13 +02:00
--> $DIR/no-closure.rs:6:35
|
LL | const F: extern "C" fn(...) = |_: ...| {};
| ^^^
|
= note: only `extern "C"` and `extern "C-unwind"` functions may have a C variable argument list
2025-09-03 16:56:13 +02:00
error: unexpected `...`
--> $DIR/no-closure.rs:11:14
2025-09-03 16:56:13 +02:00
|
LL | let f = |...| {};
| ^^^ not a valid pattern
|
2025-09-16 11:24:51 -07:00
= note: only `extern "C"` and `extern "C-unwind"` functions may have a C variable argument list
2025-09-03 16:56:13 +02:00
error: unexpected `...`
--> $DIR/no-closure.rs:16:17
2025-09-03 16:56:13 +02:00
|
LL | let f = |_: ...| {};
| ^^^
|
= note: only `extern "C"` and `extern "C-unwind"` functions may have a C variable argument list
2025-09-03 16:56:13 +02:00
2025-09-15 03:10:27 -07:00
error: aborting due to 3 previous errors
2025-09-03 16:56:13 +02:00