]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/range_inclusive.rs
Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9
[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 }