]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/range_inclusive.fixed
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / range_inclusive.fixed
1 // run-rustfix
2 // Make sure that inclusive ranges with no end point don't parse.
3
4 pub fn main() {
5     for _ in 1.. {} //~ERROR inclusive range with no end
6                      //~^HELP use `..` instead
7 }