summaryrefslogtreecommitdiffstats
path: root/tests/ui/mismatched_types/closure-arg-type-mismatch-issue-45727.fixed
blob: 6315fcca2b8b0c52df796a182707c9191197b04f (plain)
1
2
3
4
5
// run-rustfix
fn main() {
    let _ = (-10..=10).find(|x: &i32| x.signum() == 0); //~ ERROR type mismatch in closure arguments
    let _ = (-10..=10).find(|x: &i32| x.signum() == 0); //~ ERROR type mismatch in closure arguments
}