Type mismatch errors through generic enums could be clearer #105240
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
playground
Current output
Due to the use of generics, seeing the definition of the enum variant doesn't really get at the root of the problem.
Ideal output
Impact
This can happen with
Option
orResult
, which are common return types.The text was updated successfully, but these errors were encountered: