Closed
Description
openedon Mar 21, 2016
In theory the compiler should be able to detect that the following range is exhaustive and not error about non-exaustive match:
fn wont_compile(x : u8) {
match (x) {
0x00 ... 0xff => { }
}
}
Proposed (as a side-portion) in #880
Discussed in rust-lang/rust#12483 and rust-lang/rust#32381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment