rust/src/test/run-pass/match-range-static.rs
Jeong YunWon cb918e1a83 Allow non-literal static range pattern for match arms
Fix unintended error problem of:

static s: int = 1;
static e: int = 42;

fn main() {
    match 7 {
        s..e => (),
         ^~                 error: expected `=>` but found `..`
        _ => (),
    }
}
2013-05-05 11:05:06 +09:00

11 lines
112 B
Rust

static s: int = 1;
static e: int = 42;
fn main() {
match 7 {
s..e => (),
_ => (),
}
}