json/tests/ui/unexpected_comma.stderr
David Tolnay 25b5dfbb6c
Improve error message of unexpected colon or comma in json macro
These rules regressed when the unimplemented macro began accepting
formatter arguments.
2018-06-24 15:16:20 -07:00

9 lines
181 B
Plaintext

error: no rules expected the token `,`
--> $DIR/unexpected_comma.rs:13:17
|
13 | json!({ "a" , "b": true });
| ^
error: aborting due to previous error