From 8a735b667295f8390394b2536337698cb9a384ce Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 10 Feb 2018 14:10:50 +0300 Subject: G: use names in enums --- src/parser/grammar/items/structs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser/grammar') diff --git a/src/parser/grammar/items/structs.rs b/src/parser/grammar/items/structs.rs index 3b1f8a38c..3c122a56f 100644 --- a/src/parser/grammar/items/structs.rs +++ b/src/parser/grammar/items/structs.rs @@ -41,7 +41,7 @@ pub(super) fn struct_item(p: &mut Parser) { pub(super) fn enum_item(p: &mut Parser) { assert!(p.at(ENUM_KW)); p.bump(); - p.expect(IDENT); + name(p); type_params::list(p); type_params::where_clause(p); if p.expect(L_CURLY) { -- cgit v1.2.3