diff options
| author | Jeong YunWon <jeong@youknowone.org> | 2013-05-05 10:57:14 +0900 |
|---|---|---|
| committer | Jeong YunWon <jeong@youknowone.org> | 2013-05-05 11:05:06 +0900 |
| commit | cb918e1a831782d6072a0b93dd57614cb9c2d961 (patch) | |
| tree | 0d3a0ef0ddaaa451b3c61a66bcd2ebfa6de9845d /src/rt/rust_sched_loop.cpp | |
| parent | d74ac9ea03eb8faab72ce48b89dd47a14f45982a (diff) | |
| download | rust-cb918e1a831782d6072a0b93dd57614cb9c2d961.tar.gz rust-cb918e1a831782d6072a0b93dd57614cb9c2d961.zip | |
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 `..`
_ => (),
}
}
Diffstat (limited to 'src/rt/rust_sched_loop.cpp')
0 files changed, 0 insertions, 0 deletions
