You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I make this particular mistake (missing curly braces around the "foo": ... attribute):
let exp = json!(["foo": {"bar": "baz"}]);
... the error message is not great 馃槉:
error: expected type, found `{`
--> my-proj/tests/json.rs:22:14
|
22 | "foo": { "bar": "baz" }
| - ^ expected type
| |
| tried to parse a type due to this type ascription
|
::: /Users/gthb/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.67/src/macros.rs:113:32
|
113 | (@array [$($elems:expr,)*] $next:expr, $($rest:tt)*) => {
| ---------- while parsing argument for this `expr` macro fragment
|
= note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
= note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
The text was updated successfully, but these errors were encountered:
When I make this particular mistake (missing curly braces around the
"foo": ...
attribute):... the error message is not great 馃槉:
The text was updated successfully, but these errors were encountered: