From 64a65a4ff40e0c9b6d9453af79bba013afde2ffa Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 8 Aug 2018 00:53:03 +0300 Subject: trait items --- src/grammar/items/traits.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/grammar/items/traits.rs') diff --git a/src/grammar/items/traits.rs b/src/grammar/items/traits.rs index 7c0935371..0b9fb2b0b 100644 --- a/src/grammar/items/traits.rs +++ b/src/grammar/items/traits.rs @@ -12,6 +12,16 @@ pub(super) fn trait_item(p: &mut Parser) { } type_params::where_clause(p); p.expect(L_CURLY); + // test trait_item_items + // impl F { + // type A: Clone; + // const B: i32; + // fn foo() {} + // fn bar(&self); + // } + while !p.at(EOF) && !p.at(R_CURLY) { + item_or_macro(p, true); + } p.expect(R_CURLY); } -- cgit v1.2.3