"non-exhaustive patterns: _
not covered" message could be more helpful for bitwise matching
#56635
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
I have code resembling the following:
When compiling with Rust 1.31.0, I get the following output:
My bitwise matching patterns are apparently non-exhaustive :/
The error message is useful in that it is telling me where the error is. But it isn't telling me exactly which value(s) aren't covered by the match. It would be extremely useful if the compiler could do that for me. As it stands, I'll likely have to add a match for
_
and write a test that identifies which value(s) are hitting it. The amount of work is relatively small. But it would be ideal if the compiler gave me enough info to avoid this overhead.The text was updated successfully, but these errors were encountered: