]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/range_inclusive.rs
Special sync of 'e89801553ddbaccdeb2eac4db08900edb51ac7ff'
[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 }