From 23f8f3b07f76aaca4d90a87ac91c0a63c4aaa989 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 28 Dec 2024 11:05:28 -0800 Subject: [PATCH] Fix `match x { _ if .. => {} }` --- src/expr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/expr.rs b/src/expr.rs index c76db2b151..b5661fed16 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -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)