Handle equivalence classes of length-1 ranges

This commit is contained in:
varkor 2018-08-14 16:40:04 +01:00
parent e9c8361cc6
commit 1dbc78112f
2 changed files with 64 additions and 31 deletions

View file

@ -145,10 +145,16 @@ fn main() {
(0..=255, true) => {}
}
match (0u8, true) {
match (0u8, true) { // ok
(0..=125, false) => {}
(128..=255, false) => {}
(0..=255, true) => {}
(125..128, false) => {}
}
match 0u8 { // ok
0..2 => {}
1..=2 => {}
_ => {}
}
}