aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/grammar/types.rs')
-rw-r--r--src/parser/grammar/types.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/grammar/types.rs b/src/parser/grammar/types.rs
index 6535f6872..565037cb0 100644
--- a/src/parser/grammar/types.rs
+++ b/src/parser/grammar/types.rs
@@ -166,7 +166,7 @@ fn fn_pointer_type(p: &mut Parser) {
166 return; 166 return;
167 } 167 }
168 168
169 params::list(p); 169 params::param_list(p);
170 // test fn_pointer_type_with_ret 170 // test fn_pointer_type_with_ret
171 // type F = fn() -> (); 171 // type F = fn() -> ();
172 fn_ret_type(p); 172 fn_ret_type(p);
@@ -179,7 +179,7 @@ fn for_type(p: &mut Parser) {
179 assert!(p.at(FOR_KW)); 179 assert!(p.at(FOR_KW));
180 let m = p.start(); 180 let m = p.start();
181 p.bump(); 181 p.bump();
182 type_params::list(p); 182 type_params::type_param_list(p);
183 type_(p); 183 type_(p);
184 m.complete(p, FOR_TYPE); 184 m.complete(p, FOR_TYPE);
185} 185}