fix: box_syntax(#1412)

Change-Id: I6e20e0163fa545de37226c1561b3b7103615626c
This commit is contained in:
csmoe 2019-06-18 21:46:47 +08:00
parent 1541b2d689
commit 5999733ca6
2 changed files with 8 additions and 0 deletions

View File

@ -583,3 +583,8 @@ pub(crate) fn named_field_list(p: &mut Parser) {
p.expect(T!['}']);
m.complete(p, NAMED_FIELD_LIST);
}
// test box_syntax
// fn foo() {
// let x = box 1i32;
// }

View File

@ -0,0 +1,3 @@
fn foo() {
let x = box 1i32;
}