Skip to content

Commit 0d581bd

Browse files
committed
syntax: Expect the closing brace after struct literals
1 parent 78fa021 commit 0d581bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ class parser {
934934
}
935935
936936
hi = pth.span.hi;
937+
self.expect(token::RBRACE);
937938
ex = expr_struct(pth, fields);
938939
ret self.mk_pexpr(lo, hi, ex);
939940
}

0 commit comments

Comments
 (0)