]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/iterators/integral.stderr
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / iterators / integral.stderr
index 047a71f98d9f63b6be48001a8d3c694711743819..c142fec8da0f6a9969fefc0d72f425882a242aa7 100644 (file)
@@ -115,6 +115,7 @@ LL |     for _ in 42.0 {}
    |              ^^^^ `{float}` is not an iterator
    |
    = help: the trait `Iterator` is not implemented for `{float}`
+   = 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`
    = note: required for `{float}` to implement `IntoIterator`
 
 error: aborting due to 12 previous errors