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 .. pattern in pattern of let #1136

Closed
dtolnay opened this issue Mar 14, 2022 · 0 comments · Fixed by #1140
Closed

Parse .. pattern in pattern of let #1136

dtolnay opened this issue Mar 14, 2022 · 0 comments · Fixed by #1140
Labels

Comments

@dtolnay
Copy link
Owner

dtolnay commented Mar 14, 2022

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