You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of an error message complaining that Bug isn't a valid value for the matched enum (in fact, it isn't even defined anywhere). The error message doesn't even point at the line containing the bad value - it took me a while to figure out what was going on.
The text was updated successfully, but these errors were encountered:
This is because the compiler takes (Bar, Bug) to be creating a new variable Bug bound to the second field of the tuple, i.e. same as (Bar, a). I'm inclined to close this as a dupe of #10304.
Trying to compile the following code:
I get the error message:
Instead of an error message complaining that
Bug
isn't a valid value for the matchedenum
(in fact, it isn't even defined anywhere). The error message doesn't even point at the line containing the bad value - it took me a while to figure out what was going on.The text was updated successfully, but these errors were encountered: