From 0d581bdafee71cec2b4455d7d9c8d14611a1ecc8 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 23 Jul 2012 18:49:34 -0700 Subject: syntax: Expect the closing brace after struct literals --- src/libsyntax/parse/parser.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 95511479d84..656e064d694 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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); } -- cgit 1.4.1-3-g733a5