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
unused_parens
for &(mut _x) in &[1, 2, 3] { // _x: mutable binding to a copied element }
unused_parens suggests removing parens, but doing so will turn the pattern into a &mut pattern.
&mut
warning: unnecessary parentheses around pattern --> test.rs:2:10 | 2 | for &(mut _x) in &[1, 2, 3] { | ^^^^^^^^ help: remove these parentheses |
The text was updated successfully, but these errors were encountered:
Duplicate of #55342.
Sorry, something went wrong.
No branches or pull requests
unused_parens
suggests removing parens, but doing so will turn the pattern into a&mut
pattern.The text was updated successfully, but these errors were encountered: