diff options
-rw-r--r-- | crates/ra_parser/src/grammar/expressions.rs | 5 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/ok/0132_box_syntax.rs | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/crates/ra_parser/src/grammar/expressions.rs b/crates/ra_parser/src/grammar/expressions.rs index 795dccea1..2ae05521c 100644 --- a/crates/ra_parser/src/grammar/expressions.rs +++ b/crates/ra_parser/src/grammar/expressions.rs | |||
@@ -583,3 +583,8 @@ pub(crate) fn named_field_list(p: &mut Parser) { | |||
583 | p.expect(T!['}']); | 583 | p.expect(T!['}']); |
584 | m.complete(p, NAMED_FIELD_LIST); | 584 | m.complete(p, NAMED_FIELD_LIST); |
585 | } | 585 | } |
586 | |||
587 | // test box_syntax | ||
588 | // fn foo() { | ||
589 | // let x = box 1i32; | ||
590 | // } | ||
diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0132_box_syntax.rs b/crates/ra_syntax/tests/data/parser/inline/ok/0132_box_syntax.rs new file mode 100644 index 000000000..e69c81e22 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/inline/ok/0132_box_syntax.rs | |||
@@ -0,0 +1,3 @@ | |||
1 | fn foo() { | ||
2 | let x = box 1i32; | ||
3 | } | ||