Improve error message of match arms have incompatible types
#11319
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
Currently this code:
causes:
The error message just says there exists some type mismatch between some arms, but it doesn't say which arms actually are.
It would be better if rustc indicates that arm 1 and arm 2 have incompatible types.
The text was updated successfully, but these errors were encountered: