From d68a187eb5adf489b5e1eef6aa23768b819d0e65 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 10 Feb 2018 14:22:31 +0300 Subject: G: use name in types --- src/parser/grammar/items/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser/grammar/items/mod.rs') diff --git a/src/parser/grammar/items/mod.rs b/src/parser/grammar/items/mod.rs index 61ebc740f..2d9580991 100644 --- a/src/parser/grammar/items/mod.rs +++ b/src/parser/grammar/items/mod.rs @@ -236,7 +236,7 @@ fn type_item(p: &mut Parser) { assert!(p.at(TYPE_KW)); p.bump(); - p.expect(IDENT); + name(p); // test type_item_type_params // type Result = (); -- cgit v1.2.3