]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/range_inclusive.rs
Merge commit '3a31c6d8272c14388a34622193baf553636fe470' into sync_cg_clif-2021-07-07
[rust.git] / src / test / ui / parser / range_inclusive.rs
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 }