Misleading "match
arms have incompatible types" when match expression used in unimplemented operation
#119683
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-typesystem
Area: The type system
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
The error goes away if
std::ops::Sub
is implemented for&Instant
Other cases
Anything else?
I think this might be related to this issue (actually I initially thought it was the same, but that issue appears to have been fixed in the latest beta and nightly releases, while this has not).
The text was updated successfully, but these errors were encountered: