Closed
Description
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?