Skip to content
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

Parse qualified path on struct construction expr and pattern #958

Closed
dtolnay opened this issue Jan 22, 2021 · 1 comment · Fixed by #1292
Closed

Parse qualified path on struct construction expr and pattern #958

dtolnay opened this issue Jan 22, 2021 · 1 comment · Fixed by #1292
Labels

Comments

@dtolnay
Copy link
Owner

dtolnay commented Jan 22, 2021

Depending on the outcome of rust-lang/rust#80080. This would be a valid Expr: <Type as Trait>::Assoc::Variant {}

The current parse error is:

error: expected `;`
 --> dev/main.rs:5:45
  |
5 |     let _ = <Type as Trait>::Assoc::Variant {};
  |                                             ^
@dtolnay dtolnay added the syntax label Jan 22, 2021
@dtolnay
Copy link
Owner Author

dtolnay commented Jan 16, 2023

Tracking issue: rust-lang/rust#86935

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant