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
Given a call that expects a closure that accepts arguments being passed a closure that takes no arguments:
fn main() { Some(()).into_iter().filter(|| false).collect(); }
we might want to suggest modifying the closure to take the argument and ignore it:
fn main() { Some(()).into_iter().filter(|_| false).collect(); }
How often would this suggestion be inappropriate?
The text was updated successfully, but these errors were encountered:
Rollup merge of rust-lang#52647 - csmoe:closure_arg_ignore, r=estebank
662fb06
Suggest to take and ignore args while closure args count mismatching Closes rust-lang#52473
csmoe
No branches or pull requests
Given a call that expects a closure that accepts arguments being passed a closure that takes no arguments:
we might want to suggest modifying the closure to take the argument and ignore it:
How often would this suggestion be inappropriate?
The text was updated successfully, but these errors were encountered: