aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/expressions/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar/expressions/mod.rs')
-rw-r--r--crates/libsyntax2/src/grammar/expressions/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/grammar/expressions/mod.rs b/crates/libsyntax2/src/grammar/expressions/mod.rs
index fb702a398..9379ed938 100644
--- a/crates/libsyntax2/src/grammar/expressions/mod.rs
+++ b/crates/libsyntax2/src/grammar/expressions/mod.rs
@@ -433,6 +433,7 @@ fn named_field_list(p: &mut Parser) {
433 p.bump(); 433 p.bump();
434 expr(p); 434 expr(p);
435 } 435 }
436 L_CURLY => error_block(p, "expected a field"),
436 _ => p.err_and_bump("expected identifier"), 437 _ => p.err_and_bump("expected identifier"),
437 } 438 }
438 if !p.at(R_CURLY) { 439 if !p.at(R_CURLY) {