From 892acc5b36552995515f91d2bc14ae82f81d7b8d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 31 Jul 2018 18:03:50 +0300 Subject: impl items --- src/parser/grammar/items/traits.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/parser/grammar/items') 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) { } type_params::where_clause(p); p.expect(L_CURLY); + + // test impl_item_items + // impl F { + // type A = i32; + // const B: i32 = 92; + // fn foo() {} + // fn bar(&self) {} + // } + while !p.at(EOF) && !p.at(R_CURLY) { + item(p); + } p.expect(R_CURLY); } -- cgit v1.2.3