File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ parse_dotdotdot = unexpected token: `...`
189189parse_dotdotdot_rest_pattern = unexpected `...`
190190 .label = not a valid pattern
191191 .suggestion = for a rest pattern, use `..` instead of `...`
192- .note = C-variadic type `...` is not allowed here
192+ .note = only `extern "C"` and `extern "C-unwind"` functions may have a C variable argument list
193193
194194parse_double_colon_in_bound = expected `:` followed by trait or lifetime
195195 .suggestion = use single colon
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ error: unexpected `...`
1010LL | let f = |...| {};
1111 | ^^^ not a valid pattern
1212 |
13- = note: C-variadic type `...` is not allowed here
13+ = note: only `extern "C"` and `extern "C-unwind"` functions may have a C variable argument list
1414
1515error[E0743]: C-variadic type `...` may not be nested inside another type
1616 --> $DIR/no-closure.rs:13:17
You can’t perform that action at this time.
0 commit comments