diff options
Diffstat (limited to 'crates/ra_parser')
-rw-r--r-- | crates/ra_parser/src/grammar/params.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_parser/src/grammar/params.rs b/crates/ra_parser/src/grammar/params.rs index 2445f71f7..d9fbc7c94 100644 --- a/crates/ra_parser/src/grammar/params.rs +++ b/crates/ra_parser/src/grammar/params.rs | |||
@@ -125,6 +125,10 @@ fn value_parameter(p: &mut Parser, flavor: Flavor) { | |||
125 | types::type_(p); | 125 | types::type_(p); |
126 | } | 126 | } |
127 | } | 127 | } |
128 | // test closure_params | ||
129 | // fn main() { | ||
130 | // let foo = |bar, baz: Baz, qux: Qux::Quux| (); | ||
131 | // } | ||
128 | Flavor::Closure => { | 132 | Flavor::Closure => { |
129 | patterns::pattern(p); | 133 | patterns::pattern(p); |
130 | if p.at(T![:]) && !p.at(T![::]) { | 134 | if p.at(T![:]) && !p.at(T![::]) { |