You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LL | let _ = (-10..=10).find(|x: &&&i32| x.signum() == 0);
19
-
| ^^^^^^ expected `&&i32`, found integer
19
+
| ^^^^ expected `&&i32`, found integer
20
20
21
-
error: aborting due to 2 previous errors
21
+
error[E0277]: expected a `FnMut(&<RangeInclusive<{integer}> as Iterator>::Item)` closure, found `{closure@$DIR/closure-arg-type-mismatch-issue-45727.rs:9:29: 9:40}`
LL | let _ = (-10..=10).find(|x: &&&i32| x.signum() == 0);
25
+
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an `FnMut(&<RangeInclusive<{integer}> as Iterator>::Item)` closure, found `{closure@$DIR/closure-arg-type-mismatch-issue-45727.rs:9:29: 9:40}`
26
+
| |
27
+
| required by a bound introduced by this call
28
+
|
29
+
= help: the trait `for<'a> FnMut(&'a <RangeInclusive<{integer}> as Iterator>::Item)` is not implemented for closure `{closure@$DIR/closure-arg-type-mismatch-issue-45727.rs:9:29: 9:40}`
30
+
= note: expected a closure with arguments `(&&&i32,)`
31
+
found a closure with arguments `(&<RangeInclusive<{integer}> as Iterator>::Item,)`
0 commit comments