summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/pat-ranges-4.rs
blob: 61188976b028cce46b9cd175b3a1abde7ffed87d (plain)
1
2
3
4
5
6
// Parsing of range patterns

fn main() {
    let 10 - 3 ..= 10 = 8;
    //~^ error: expected one of `...`, `..=`, `..`, `:`, `;`, `=`, or `|`, found `-`
}