Skip to content

Commit

Permalink
Fix match x { _ if .. => {} }
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 28, 2024
1 parent 85133ea commit 23f8f3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2867,6 +2867,7 @@ pub(crate) mod parsing {
|| input.peek(Token![,])
|| input.peek(Token![;])
|| input.peek(Token![.]) && !input.peek(Token![..])
|| input.peek(Token![=>])
|| !allow_struct.0 && input.peek(token::Brace))
{
Ok(None)
Expand Down

0 comments on commit 23f8f3b

Please sign in to comment.