summary refs log tree commit diff
path: root/src/test/ui/parser/range_inclusive.rs
blob: 7c3b906b47f9f4b8723ccbba0ca8ca4065049596 (plain)
1
2
3
4
5
6
// Make sure that inclusive ranges with no end point don't parse.

pub fn main() {
    for _ in 1..= {} //~ERROR inclusive range with no end
                     //~^HELP use `..` instead
}