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 631ce80 commit 4a948dfCopy full SHA for 4a948df
tests/ui/missing_comma.rs
@@ -0,0 +1,5 @@
1
+use serde_json::json;
2
+
3
+fn main() {
4
+ json!({ "1": "" "2": "" });
5
+}
tests/ui/missing_comma.stderr
@@ -0,0 +1,10 @@
+error: expected type, found `""`
+ --> $DIR/missing_comma.rs:4:18
+ |
+4 | json!({ "1": "" "2": "" });
+ | - ^^ expected type
6
+ | |
7
+ | tried to parse a type due to this type ascription
8
9
+ = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
10
+ = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
0 commit comments