aboutsummaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-02-10 11:10:50 +0000
committerAleksey Kladov <[email protected]>2018-02-10 11:10:50 +0000
commit8a735b667295f8390394b2536337698cb9a384ce (patch)
tree6947e1e61aac549d152e4066f73b3f687a4017d2 /src/parser
parentca6e93f091bc6f2e9dc26e842fc87d614089cf9d (diff)
G: use names in enums
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/grammar/items/structs.rs2
1 files changed, 1 insertions, 1 deletions
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) {
41pub(super) fn enum_item(p: &mut Parser) { 41pub(super) fn enum_item(p: &mut Parser) {
42 assert!(p.at(ENUM_KW)); 42 assert!(p.at(ENUM_KW));
43 p.bump(); 43 p.bump();
44 p.expect(IDENT); 44 name(p);
45 type_params::list(p); 45 type_params::list(p);
46 type_params::where_clause(p); 46 type_params::where_clause(p);
47 if p.expect(L_CURLY) { 47 if p.expect(L_CURLY) {