We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code compiles just fine, but I don't think that it should
enum A { B } fn main() { match B { B(*) => {} } }
Is that actually valid syntax? I would expect to get a compiler error that you can't ignore all fields when there are none to begin with.
The text was updated successfully, but these errors were encountered:
Nominating for the backwards-compatible milestone.
Sorry, something went wrong.
Is this a bug? "Ignore all fields" is trivially true when there are zero fields.
I think this should be allowed, but see #5830 about the general inconsistency with these.
I'm ok with that.
No branches or pull requests
The following code compiles just fine, but I don't think that it should
Is that actually valid syntax? I would expect to get a compiler error that you can't ignore all fields when there are none to begin with.
The text was updated successfully, but these errors were encountered: