diff options
author | Aleksey Kladov <[email protected]> | 2018-02-10 11:15:04 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-02-10 11:15:04 +0000 |
commit | fa2131365e8ff2a6fa4fcb47aa04e6d51a32943e (patch) | |
tree | 80bcea00fdef46350572b5ee03ffb0979d0bfed6 /src/parser/grammar/items | |
parent | c13e6db774acca952577fa7a18599b75b407f3c2 (diff) |
G: use names in traits
Diffstat (limited to 'src/parser/grammar/items')
-rw-r--r-- | src/parser/grammar/items/traits.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/grammar/items/traits.rs b/src/parser/grammar/items/traits.rs index 3bef9639f..9961a88fe 100644 --- a/src/parser/grammar/items/traits.rs +++ b/src/parser/grammar/items/traits.rs | |||
@@ -3,7 +3,7 @@ use super::*; | |||
3 | pub(super) fn trait_item(p: &mut Parser) { | 3 | pub(super) fn trait_item(p: &mut Parser) { |
4 | assert!(p.at(TRAIT_KW)); | 4 | assert!(p.at(TRAIT_KW)); |
5 | p.bump(); | 5 | p.bump(); |
6 | p.expect(IDENT); | 6 | name(p); |
7 | p.expect(L_CURLY); | 7 | p.expect(L_CURLY); |
8 | p.expect(R_CURLY); | 8 | p.expect(R_CURLY); |
9 | } | 9 | } |