Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
The bug on ‘match’ (exhaustiveness checking should understand valid ranges for integers) #45590
When I compile this :
The compiler gives an error :
Thanks for raising this issue! This is indeed a missing feature which has been discussed before in #12483 and #30578. Since it requires a new feature in the language, it's best to engage with the processes for improving Rust directly if you want to push this towards a solution. See https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md for more information, and the existing rfc issue that @scottmcm linked to.
I'll close this issue like its duplicates.