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
//~| NOTE in this expansion of desugaring of `for` loop
8
+
//~| NOTE in this expansion of desugaring of `for` loop
9
+
//~| NOTE in this expansion of desugaring of `for` loop
10
+
//~| NOTE in this expansion of desugaring of `for` loop
11
+
//~| NOTE if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
12
+
//~| NOTE required for `{float}` to implement `IntoIterator`
= help: the trait `Iterator` is not implemented for `{float}`
8
+
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
9
+
= note: required for `{float}` to implement `IntoIterator`
10
+
11
+
error: aborting due to previous error
12
+
13
+
For more information about this error, try `rustc --explain E0277`.
Copy file name to clipboardExpand all lines: tests/ui/iterators/integral.stderr
+1
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,7 @@ LL | for _ in 42.0 {}
115
115
| ^^^^ `{float}` is not an iterator
116
116
|
117
117
= help: the trait `Iterator` is not implemented for `{float}`
118
+
= note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
118
119
= note: required for `{float}` to implement `IntoIterator`
0 commit comments