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

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