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
It's not compile:
pub trait A: Serialize + DeserializeOwned {} #[derive(Serialize, Deserialize)] pub struct B<T: A> { t: T, }
and generates 90 lines of unuseful errors
The text was updated successfully, but these errors were encountered:
It compiles:
pub trait A: Serialize + DeserializeOwned {} #[derive(Serialize, Deserialize)] #[serde(bound(deserialize = "T: A"))] pub struct B<T> { t: T, }
but it's no:
#[derive(Serialize, Deserialize)] pub struct B<T: A> { t: T, }
WHY???
And also why first example compiles and serializes if bound only for deserializing?
Sorry, something went wrong.
No branches or pull requests
It's not compile:
and generates 90 lines of unuseful errors
The text was updated successfully, but these errors were encountered: