Closed
Description
For a match where I'm matching on a u8
, I put 251..=256
on accident, and then rather than saying that 256 is out of range for u8
, it decided to wrap 256 to 0 and then error that 251 is lower than the end of the range:
error[E0030]: lower range bound must be less than or equal to upper
--> src\lib.rs:86:7
|
86 | 251..=256 => StarClass::BlueGiant,
| ^^^ lower bound larger than upper bound
Clearly this is not a good situation.