X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Fiterators%2Fintegral.stderr;h=c142fec8da0f6a9969fefc0d72f425882a242aa7;hb=43134714f529d087aecb8c6327ca282c2fa261f1;hp=047a71f98d9f63b6be48001a8d3c694711743819;hpb=4887cb18dc2ef5b1bf3fc50ce6c267fde085032b;p=rust.git diff --git a/tests/ui/iterators/integral.stderr b/tests/ui/iterators/integral.stderr index 047a71f98d9..c142fec8da0 100644 --- a/tests/ui/iterators/integral.stderr +++ b/tests/ui/iterators/integral.stderr @@ -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