Skip to content

Parse qualified path on struct construction expr and pattern #958

Description

@dtolnay

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 {};
  |                                             ^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions