diff options
author | Aleksey Kladov <[email protected]> | 2018-08-08 16:34:26 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-08 16:34:26 +0100 |
commit | 8f21afacfc981e93f2ad78cd340e9b6c0e821d92 (patch) | |
tree | de7edde0b99d913c9f6ec049f794e71a26f1cecc /src/grammar/paths.rs | |
parent | de7b1887ae46c78c3c0abf6d264b2649b1b5cf0b (diff) |
Optional patterns in fn types
Diffstat (limited to 'src/grammar/paths.rs')
-rw-r--r-- | src/grammar/paths.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grammar/paths.rs b/src/grammar/paths.rs index 6d406645f..c277e2a6b 100644 --- a/src/grammar/paths.rs +++ b/src/grammar/paths.rs | |||
@@ -75,7 +75,7 @@ fn path_generic_args(p: &mut Parser, mode: Mode) { | |||
75 | // test path_fn_trait_args | 75 | // test path_fn_trait_args |
76 | // type F = Box<Fn(x: i32) -> ()>; | 76 | // type F = Box<Fn(x: i32) -> ()>; |
77 | if p.at(L_PAREN) { | 77 | if p.at(L_PAREN) { |
78 | params::param_list(p); | 78 | params::param_list_opt_patterns(p); |
79 | fn_ret_type(p); | 79 | fn_ret_type(p); |
80 | } else { | 80 | } else { |
81 | type_args::type_arg_list(p, false) | 81 | type_args::type_arg_list(p, false) |