From fa2131365e8ff2a6fa4fcb47aa04e6d51a32943e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 10 Feb 2018 14:15:04 +0300 Subject: G: use names in traits --- src/parser/grammar/items/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser/grammar/items') 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::*; pub(super) fn trait_item(p: &mut Parser) { assert!(p.at(TRAIT_KW)); p.bump(); - p.expect(IDENT); + name(p); p.expect(L_CURLY); p.expect(R_CURLY); } -- cgit v1.2.3