Bogus "non-exhaustive patterns" error with half-open range patterns on isize
/usize
#111859
Labels
A-exhaustiveness-checking
Relating to exhaustiveness / usefulness checking of patterns
A-patterns
Relating to patterns and pattern matching
C-bug
Category: This is a bug.
I tried this code:
I expected to see this happen: Successful compilation, the match is exhaustive
Instead, this happened:
isize
(with..=0
and1..
patterns) has the same issue, but the other numeric types don't.Meta
rustc --version --verbose
:@rustbot label A-patterns A-exhaustiveness-checking
The text was updated successfully, but these errors were encountered: