summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/range-4.rs
blob: c970c96de849094b14c1f2e637abee323778ff32 (plain)
1
2
3
4
5
6
// Test range syntax - syntax errors.

pub fn main() {
    let r = ..1..2;
    //~^ ERROR expected one of `.`, `;`, `?`, `else`, or an operator, found `..`
}