serde
serde copied to clipboard
Bad message for struct deserialized from array that is too long
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
#[derive(Deserialize, Debug)]
struct S {
a: u8,
}
fn main() {
println!("{}", serde_json::from_str::<S>("[0, 0]").unwrap_err());
}
trailing characters at line 1 column 3
Let's match the message from #981 if possible.
It seems that this issue should be moved to https://github.com/serde-rs/json