diff options
Diffstat (limited to 'src/grammar/items/traits.rs')
-rw-r--r-- | src/grammar/items/traits.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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) { | |||
12 | } | 12 | } |
13 | type_params::where_clause(p); | 13 | type_params::where_clause(p); |
14 | p.expect(L_CURLY); | 14 | p.expect(L_CURLY); |
15 | // test trait_item_items | ||
16 | // impl F { | ||
17 | // type A: Clone; | ||
18 | // const B: i32; | ||
19 | // fn foo() {} | ||
20 | // fn bar(&self); | ||
21 | // } | ||
22 | while !p.at(EOF) && !p.at(R_CURLY) { | ||
23 | item_or_macro(p, true); | ||
24 | } | ||
15 | p.expect(R_CURLY); | 25 | p.expect(R_CURLY); |
16 | } | 26 | } |
17 | 27 | ||