aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_parser/src/grammar/expressions.rs5
-rw-r--r--crates/ra_syntax/tests/data/parser/inline/ok/0132_box_syntax.rs3
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 @@
1fn foo() {
2 let x = box 1i32;
3}