Skip to content

Commit

Permalink
Parse .. pattern in pattern of let
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 14, 2022
1 parent b7aaa08 commit c708999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ pub mod parsing {
fn pat_lit_expr(input: ParseStream) -> Result<Option<Box<Expr>>> {
if input.is_empty()
|| input.peek(Token![|])
|| input.peek(Token![=>])
|| input.peek(Token![=])
|| input.peek(Token![:]) && !input.peek(Token![::])
|| input.peek(Token![,])
|| input.peek(Token![;])
Expand Down

0 comments on commit c708999

Please sign in to comment.