summaryrefslogtreecommitdiffstats
path: root/tests/ui/mismatched_types/closure-arg-type-mismatch-issue-45727.rs
blob: c12c5362efcfe66215f93243cf740c4f14741940 (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
}