mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 18:34:08 +00:00
syntax: Expect the closing brace after struct literals
This commit is contained in:
parent
78fa02106e
commit
0d581bdafe
@ -934,6 +934,7 @@ class parser {
|
||||
}
|
||||
|
||||
hi = pth.span.hi;
|
||||
self.expect(token::RBRACE);
|
||||
ex = expr_struct(pth, fields);
|
||||
ret self.mk_pexpr(lo, hi, ex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user