Skip to content

Parse .. pattern in pattern of let #1136

Closed
@dtolnay

Description

@dtolnay

This needs to be syntactically accepted by consequence of rust-lang/rfcs#2707. Currently rustc can parse it but syn cannot.

#[cfg(any())]
fn main() {
    let .. = 10;
}
error: expected one of: literal, identifier, `::`, `<`, `self`, `Self`, `super`, `crate`, `const`
 --> dev/main.rs:3:12
  |
3 |     let .. = 10;
  |            ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions