syntax: Expect the closing brace after struct literals
This commit is contained in:
parent
78fa02106e
commit
0d581bdafe
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue