-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
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
Parsable associated enum constructor #79658
Comments
@rustbot claim |
Nominating for T-lang T-compiler: is this intended language design or was it an oversight when implementing the parser? |
It's intended in the sense that qualified paths
contexts that nobody ever bothered implementing them. Name resolution and type checking support for associated items in these positions was implemented in late 2016 (#37035), starting from that point the surface syntax for qualified paths could be added at any point. I guess they can be supported now for consistency. |
Since I'm new to the parser, I did some investigation on what the issue is. When parsing the expression The solution is probably to change |
Yes, that's the main thing. Then errors need to be removed from |
Assigning |
I tried this code:
I expected to see this happen: in second block foo = Foo::Foo {br: 3}
Instead, this happened: compilation error
Playground
Meta
The text was updated successfully, but these errors were encountered: