fix: box_syntax(#1412)
Change-Id: I6e20e0163fa545de37226c1561b3b7103615626c
This commit is contained in:
@@ -583,3 +583,8 @@ pub(crate) fn named_field_list(p: &mut Parser) {
|
|||||||
p.expect(T!['}']);
|
p.expect(T!['}']);
|
||||||
m.complete(p, NAMED_FIELD_LIST);
|
m.complete(p, NAMED_FIELD_LIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// test box_syntax
|
||||||
|
// fn foo() {
|
||||||
|
// let x = box 1i32;
|
||||||
|
// }
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fn foo() {
|
||||||
|
let x = box 1i32;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user