We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[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>("[]").unwrap_err()); }
invalid length 0, expected tuple of 1 elements at line 1 column 2
Something like this might be better:
invalid length 0, expected struct S with 1 element at line 1 column 2
The text was updated successfully, but these errors were encountered:
Fixed in 4ad140e.
Sorry, something went wrong.
dtolnay
No branches or pull requests
Something like this might be better:
The text was updated successfully, but these errors were encountered: