diff options
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r-- | crates/ra_parser/src/grammar/items.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_parser/src/grammar/items.rs b/crates/ra_parser/src/grammar/items.rs index 91f9bfe8a..a057c8167 100644 --- a/crates/ra_parser/src/grammar/items.rs +++ b/crates/ra_parser/src/grammar/items.rs | |||
@@ -88,7 +88,8 @@ pub(super) fn maybe_item(p: &mut Parser, flavor: ItemFlavor) -> MaybeItem { | |||
88 | let mut has_mods = false; | 88 | let mut has_mods = false; |
89 | 89 | ||
90 | // modifiers | 90 | // modifiers |
91 | 91 | // test_err async_without_semicolon | |
92 | // fn foo() { let _ = async {} } | ||
92 | has_mods |= p.eat(CONST_KW); | 93 | has_mods |= p.eat(CONST_KW); |
93 | if p.at(ASYNC_KW) && p.nth(1) != L_CURLY { | 94 | if p.at(ASYNC_KW) && p.nth(1) != L_CURLY { |
94 | p.eat(ASYNC_KW); | 95 | p.eat(ASYNC_KW); |