syntax: Expect the closing brace after struct literals

This commit is contained in:
Patrick Walton 2012-07-23 18:49:34 -07:00
parent 78fa02106e
commit 0d581bdafe

View File

@ -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);
}