mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 15:26:00 +00:00
Trigger missing comma rustc suggestion
This commit is contained in:
parent
0443daa488
commit
9357569b1c
@ -299,5 +299,5 @@ macro_rules! json_unexpected {
|
||||
#[macro_export]
|
||||
#[doc(hidden)]
|
||||
macro_rules! json_expect_expr_comma {
|
||||
($e:expr ,) => {};
|
||||
($e:expr , $($tt:tt)*) => {};
|
||||
}
|
||||
|
@ -2,4 +2,6 @@ error: no rules expected the token `"2"`
|
||||
--> $DIR/missing_comma.rs:4:21
|
||||
|
|
||||
4 | json!({ "1": "" "2": "" });
|
||||
| ^^^ no rules expected this token in macro call
|
||||
| -^^^ no rules expected this token in macro call
|
||||
| |
|
||||
| help: missing comma here
|
||||
|
Loading…
x
Reference in New Issue
Block a user