Skip to content

Commit 8306a2f

Browse files
committed
Reword note
1 parent ed85f98 commit 8306a2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_parse/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ parse_dotdotdot = unexpected token: `...`
189189
parse_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
194194
parse_double_colon_in_bound = expected `:` followed by trait or lifetime
195195
.suggestion = use single colon

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ error: unexpected `...`
1010
LL | 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

1515
error[E0743]: C-variadic type `...` may not be nested inside another type
1616
--> $DIR/no-closure.rs:13:17

0 commit comments

Comments
 (0)