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 leading vert in or-patterns #982

Closed
dtolnay opened this issue Mar 26, 2021 · 0 comments · Fixed by #987
Closed

Parse leading vert in or-patterns #982

dtolnay opened this issue Mar 26, 2021 · 0 comments · Fixed by #987
Labels

Comments

@dtolnay
Copy link
Owner

dtolnay commented Mar 26, 2021

As seen in the rustc test suite's src/test/ui/or-patterns/or-patterns-syntactic-pass.rs.

error: expected one of: `::`, `<`, `_`, literal, `const`, `ref`, `mut`, `&`, parentheses, square brackets, `..`, `const`
  --> dev/main.rs:27:10
   |
27 |     let (| A | B);
   |          ^
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