syn icon indicating copy to clipboard operation
syn copied to clipboard

Parse qualified path on struct construction expr and pattern

Open dtolnay opened this issue 4 years ago • 0 comments

Depending on the outcome of https://github.com/rust-lang/rust/pull/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 avatar Jan 22 '21 00:01 dtolnay