diff options
Diffstat (limited to 'src/parser/grammar/items')
-rw-r--r-- | src/parser/grammar/items/traits.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/parser/grammar/items/traits.rs b/src/parser/grammar/items/traits.rs index 812cacfb7..7d657ced0 100644 --- a/src/parser/grammar/items/traits.rs +++ b/src/parser/grammar/items/traits.rs | |||
@@ -29,6 +29,17 @@ pub(super) fn impl_item(p: &mut Parser) { | |||
29 | } | 29 | } |
30 | type_params::where_clause(p); | 30 | type_params::where_clause(p); |
31 | p.expect(L_CURLY); | 31 | p.expect(L_CURLY); |
32 | |||
33 | // test impl_item_items | ||
34 | // impl F { | ||
35 | // type A = i32; | ||
36 | // const B: i32 = 92; | ||
37 | // fn foo() {} | ||
38 | // fn bar(&self) {} | ||
39 | // } | ||
40 | while !p.at(EOF) && !p.at(R_CURLY) { | ||
41 | item(p); | ||
42 | } | ||
32 | p.expect(R_CURLY); | 43 | p.expect(R_CURLY); |
33 | } | 44 | } |
34 | 45 | ||