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