Compiler should be able to compile EnumVariant(foo) == function_returning_enum() without PartialEq #57782
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
needs-rfc
This change is large or controversial enough that it should have an RFC accepted before doing it.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Given this pseudocode
It should be transformed to this pseudocode
Currently I get this error.
It would be nice syntax sugar to have not only for
Result
, but for any generic enum.The text was updated successfully, but these errors were encountered: