diff options
author | csmoe <[email protected]> | 2019-06-18 14:46:47 +0100 |
---|---|---|
committer | csmoe <[email protected]> | 2019-06-18 14:46:47 +0100 |
commit | 5999733ca60e37c54d761b0a669e154b97b121b1 (patch) | |
tree | 6efb664e40e8b54d7339ebfe3914cecfa3b655d8 /crates | |
parent | 1541b2d689393221938d7cb935862f76395874e9 (diff) |
fix: box_syntax(#1412)
Change-Id: I6e20e0163fa545de37226c1561b3b7103615626c
Diffstat (limited to 'crates')
-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 | } | ||