File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,8 @@ fn fallback_explicit_named_args(input: ParseStream) -> Result<FmtArguments> {
193
193
let ident = input. call ( Ident :: parse_any) ?;
194
194
input. parse :: < Token ! [ =] > ( ) ?;
195
195
args. named . insert ( ident) ;
196
+ } else {
197
+ input. parse :: < TokenTree > ( ) ?;
196
198
}
197
199
}
198
200
Original file line number Diff line number Diff line change
1
+ error: expected `,`, found `.`
2
+ --> tests/ui/expression-fallback.rs:4:11
3
+ |
4
+ 4 | #[error("".yellow)]
5
+ | ^ expected `,`
6
+
7
+ error: argument never used
8
+ --> tests/ui/expression-fallback.rs:4:12
9
+ |
10
+ 4 | #[error("".yellow)]
11
+ | -- ^^^^^^ argument never used
12
+ | |
13
+ | formatting specifier missing
14
+
15
+ error[E0425]: cannot find value `yellow` in this scope
16
+ --> tests/ui/expression-fallback.rs:4:12
17
+ |
18
+ 4 | #[error("".yellow)]
19
+ | ^^^^^^ not found in this scope
You can’t perform that action at this time.
0 commit comments