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)