-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
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
Destructuring structs with unused variable gives wrong warning. #56472
Labels
Comments
CC #50303, @zackmdavis we need to extend #50854 to closure args too 😬. |
estebank
added
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
labels
Dec 3, 2018
estebank
added a commit
to estebank/rust
that referenced
this issue
Mar 2, 2019
pietroalbini
added a commit
to pietroalbini/rust
that referenced
this issue
Mar 8, 2019
Suggest appropriate code for unused field when destructuring pattern Fix rust-lang#56472.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
gives this warning :
However, applying such changes gives these errors :
I think the warning should be replaced with something that works (like
x:_
) or not issued at all.The text was updated successfully, but these errors were encountered: