diff --git a/src/stmt.rs b/src/stmt.rs index fb67feccb2..fd14aec26c 100644 --- a/src/stmt.rs +++ b/src/stmt.rs @@ -200,7 +200,7 @@ pub(crate) mod parsing { } } - if input.peek(Token![let]) { + if input.peek(Token![let]) && !input.peek(token::Group) { stmt_local(input, attrs).map(Stmt::Local) } else if input.peek(Token![pub]) || input.peek(Token![crate]) && !input.peek2(Token![::]) diff --git a/tests/test_stmt.rs b/tests/test_stmt.rs index 0edb8caad9..61890a40ec 100644 --- a/tests/test_stmt.rs +++ b/tests/test_stmt.rs @@ -85,7 +85,6 @@ fn test_none_group() { let tokens = Group::new(Delimiter::None, quote!(let None = None)).to_token_stream(); let stmts = Block::parse_within.parse2(tokens).unwrap(); - // FIXME snapshot!(stmts, @r###" [ Stmt::Expr(