2025-09-16 11:38:08 -07:00
|
|
|
error: unexpected `...`
|
2025-09-03 16:56:13 +02:00
|
|
|
--> $DIR/no-closure.rs:6:35
|
|
|
|
|
|
|
|
|
|
|
LL | const F: extern "C" fn(...) = |_: ...| {};
|
|
|
|
|
| ^^^
|
2025-09-16 11:38:08 -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 `...`
|
2025-09-16 11:38:08 -07:00
|
|
|
--> $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
|
|
|
|
2025-09-16 11:38:08 -07:00
|
|
|
error: unexpected `...`
|
|
|
|
|
--> $DIR/no-closure.rs:16:17
|
2025-09-03 16:56:13 +02:00
|
|
|
|
|
|
|
|
|
LL | let f = |_: ...| {};
|
|
|
|
|
| ^^^
|
2025-09-16 11:38:08 -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
|
|
|
|
2025-09-15 03:10:27 -07:00
|
|
|
error: aborting due to 3 previous errors
|
2025-09-03 16:56:13 +02:00
|
|
|
|