aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser/grammar/items/mod.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/parser/grammar/items/mod.rs b/src/parser/grammar/items/mod.rs
index 037cdca53..d1da1ecb4 100644
--- a/src/parser/grammar/items/mod.rs
+++ b/src/parser/grammar/items/mod.rs
@@ -234,6 +234,10 @@ fn fn_item(p: &mut Parser) {
234 p.bump(); 234 p.bump();
235 235
236 name(p); 236 name(p);
237 // test fn_item_type_params
238 // fn foo<T: Clone + Copy>(){}
239 type_params::list(p);
240
237 if p.at(L_PAREN) { 241 if p.at(L_PAREN) {
238 fn_value_parameters(p); 242 fn_value_parameters(p);
239 } else { 243 } else {
@@ -243,6 +247,11 @@ fn fn_item(p: &mut Parser) {
243 // fn foo() {} 247 // fn foo() {}
244 // fn bar() -> () {} 248 // fn bar() -> () {}
245 fn_ret_type(p); 249 fn_ret_type(p);
250
251 // test fn_item_where_clause
252 // fn foo<T>() where T: Copy {}
253 type_params::where_clause(p);
254
246 block(p); 255 block(p);
247 256
248 // test block 257 // test block