aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/items/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/grammar/items/mod.rs')
-rw-r--r--src/parser/grammar/items/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser/grammar/items/mod.rs b/src/parser/grammar/items/mod.rs
index 8c2704be5..d5f75f13d 100644
--- a/src/parser/grammar/items/mod.rs
+++ b/src/parser/grammar/items/mod.rs
@@ -236,10 +236,10 @@ fn fn_item(p: &mut Parser) {
236 name(p); 236 name(p);
237 // test fn_item_type_params 237 // test fn_item_type_params
238 // fn foo<T: Clone + Copy>(){} 238 // fn foo<T: Clone + Copy>(){}
239 type_params::list(p); 239 type_params::type_param_list(p);
240 240
241 if p.at(L_PAREN) { 241 if p.at(L_PAREN) {
242 params::list(p); 242 params::param_list(p);
243 } else { 243 } else {
244 p.error("expected function arguments"); 244 p.error("expected function arguments");
245 } 245 }
@@ -265,7 +265,7 @@ fn type_item(p: &mut Parser) {
265 265
266 // test type_item_type_params 266 // test type_item_type_params
267 // type Result<T> = (); 267 // type Result<T> = ();
268 type_params::list(p); 268 type_params::type_param_list(p);
269 269
270 // test type_item_where_clause 270 // test type_item_where_clause
271 // type Foo where Foo: Copy = (); 271 // type Foo where Foo: Copy = ();