diff options
author | Aleksey Kladov <[email protected]> | 2018-08-07 22:53:03 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-07 22:53:03 +0100 |
commit | 64a65a4ff40e0c9b6d9453af79bba013afde2ffa (patch) | |
tree | 9b8b488b35fae3f5497f86d67c18ed5fd63d5c7f /src/grammar/items/traits.rs | |
parent | 2fb854ccdae6f1f12b60441e5c3b283bdc81fb0a (diff) |
trait items
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 | ||