Handle equivalence classes of length-1 ranges
This commit is contained in:
parent
e9c8361cc6
commit
1dbc78112f
2 changed files with 64 additions and 31 deletions
|
|
@ -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 => {}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue