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
Copy file name to clipboardExpand all lines: tests/ui/issues/issue-76191.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ LL | RANGE => {}
21
21
| `RANGE` is interpreted as a constant, not a new binding
22
22
|
23
23
= note: expected type `i32`
24
-
found struct `RangeInclusive<i32>`
24
+
found struct `std::ops::RangeInclusive<i32>`
25
25
help: you may want to move the range into the match block
26
26
|
27
27
LL | 0..=255 => {}
@@ -43,7 +43,7 @@ LL | RANGE2 => {}
43
43
| `RANGE2` is interpreted as a constant, not a new binding
44
44
|
45
45
= note: expected type `i32`
46
-
found struct `RangeInclusive<i32>`
46
+
found struct `std::ops::RangeInclusive<i32>`
47
47
= note: constants only support matching by type, if you meant to match against a range of values, consider using a range pattern like `min ..= max` in the match block
Copy file name to clipboardExpand all lines: tests/ui/mismatched_types/closure-arg-type-mismatch-issue-45727.next.stderr
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
-
error[E0277]: expected a `FnMut(&<RangeInclusive<{integer}> as Iterator>::Item)` closure, found `{closure@$DIR/closure-arg-type-mismatch-issue-45727.rs:6:29: 6:37}`
1
+
error[E0277]: expected a `FnMut(&<std::ops::RangeInclusive<{integer}> as Iterator>::Item)` closure, found `{closure@$DIR/closure-arg-type-mismatch-issue-45727.rs:6:29: 6:37}`
LL | let _ = (-10..=10).find(|x: i32| x.signum() == 0);
5
-
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^ expected an `FnMut(&<RangeInclusive<{integer}> as Iterator>::Item)` closure, found `{closure@$DIR/closure-arg-type-mismatch-issue-45727.rs:6:29: 6:37}`
5
+
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^ expected an `FnMut(&<std::ops::RangeInclusive<{integer}> as Iterator>::Item)` closure, found `{closure@$DIR/closure-arg-type-mismatch-issue-45727.rs:6:29: 6:37}`
6
6
| |
7
7
| required by a bound introduced by this call
8
8
|
9
-
= 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:6:29: 6:37}`
9
+
= help: the trait `for<'a> FnMut(&'a <std::ops::RangeInclusive<{integer}> as Iterator>::Item)` is not implemented for closure `{closure@$DIR/closure-arg-type-mismatch-issue-45727.rs:6:29: 6:37}`
10
10
= note: expected a closure with arguments `(i32,)`
11
-
found a closure with arguments `(&<RangeInclusive<{integer}> as Iterator>::Item,)`
11
+
found a closure with arguments `(&<std::ops::RangeInclusive<{integer}> as Iterator>::Item,)`
0 commit comments