diff options
Diffstat (limited to 'crates/libsyntax2/src/grammar/expressions/atom.rs')
-rw-r--r-- | crates/libsyntax2/src/grammar/expressions/atom.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/grammar/expressions/atom.rs b/crates/libsyntax2/src/grammar/expressions/atom.rs index e83c82c92..ab4aa49d2 100644 --- a/crates/libsyntax2/src/grammar/expressions/atom.rs +++ b/crates/libsyntax2/src/grammar/expressions/atom.rs | |||
@@ -269,6 +269,10 @@ fn match_arm_list(p: &mut Parser) { | |||
269 | let m = p.start(); | 269 | let m = p.start(); |
270 | p.eat(L_CURLY); | 270 | p.eat(L_CURLY); |
271 | while !p.at(EOF) && !p.at(R_CURLY) { | 271 | while !p.at(EOF) && !p.at(R_CURLY) { |
272 | if p.at(L_CURLY) { | ||
273 | error_block(p, "expected match arm"); | ||
274 | continue; | ||
275 | } | ||
272 | // test match_arms_commas | 276 | // test match_arms_commas |
273 | // fn foo() { | 277 | // fn foo() { |
274 | // match () { | 278 | // match () { |