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
#[derive(Default)] struct Type<T> { vec: Vec<T>, }
only derives Type<T>: Default if T: Default, which is unnecessary, given a Vec<T>: Default for any unbounded T.
Type<T>: Default
T: Default
Vec<T>: Default
T
The text was updated successfully, but these errors were encountered:
Sounds like #26925
Sorry, something went wrong.
Certainly related, but not exactly a duplicate.
Since #32673 was a duplicate of #26925, I would argue this is as well.
Closing as duplicate of #26925.
No branches or pull requests
only derives
Type<T>: Default
ifT: Default
, which is unnecessary, given aVec<T>: Default
for any unboundedT
.The text was updated successfully, but these errors were encountered: