mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Fix error blocks
This commit is contained in:
parent
7f4b07a907
commit
b79c8b6d8a
6 changed files with 20 additions and 1 deletions
|
@ -433,6 +433,7 @@ fn named_field_list(p: &mut Parser) {
|
|||
p.bump();
|
||||
expr(p);
|
||||
}
|
||||
L_CURLY => error_block(p, "expected a field"),
|
||||
_ => p.err_and_bump("expected identifier"),
|
||||
}
|
||||
if !p.at(R_CURLY) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue