We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0443daa commit 9357569Copy full SHA for 9357569
src/macros.rs
@@ -299,5 +299,5 @@ macro_rules! json_unexpected {
299
#[macro_export]
300
#[doc(hidden)]
301
macro_rules! json_expect_expr_comma {
302
- ($e:expr ,) => {};
+ ($e:expr , $($tt:tt)*) => {};
303
}
tests/ui/missing_comma.stderr
@@ -2,4 +2,6 @@ error: no rules expected the token `"2"`
2
--> $DIR/missing_comma.rs:4:21
3
|
4
4 | json!({ "1": "" "2": "" });
5
- | ^^^ no rules expected this token in macro call
+ | -^^^ no rules expected this token in macro call
6
+ | |
7
+ | help: missing comma here
0 commit comments