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: `...`
189
189
parse_dotdotdot_rest_pattern = unexpected `...`
190
190
.label = not a valid pattern
191
191
.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
193
193
194
194
parse_double_colon_in_bound = expected `:` followed by trait or lifetime
195
195
.suggestion = use single colon
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ error: unexpected `...`
10
10
LL | let f = |...| {};
11
11
| ^^^ not a valid pattern
12
12
|
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
14
14
15
15
error[E0743]: C-variadic type `...` may not be nested inside another type
16
16
--> $DIR/no-closure.rs:13:17
You can’t perform that action at this time.
0 commit comments