diff --git a/src/pat.rs b/src/pat.rs index bfabfe667a..cce95a6b9e 100644 --- a/src/pat.rs +++ b/src/pat.rs @@ -654,7 +654,7 @@ pub mod parsing { fn pat_lit_expr(input: ParseStream) -> Result>> { 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![;])