We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3da53ab commit 0e10e77Copy full SHA for 0e10e77
crates/ra_parser/src/grammar/params.rs
@@ -115,7 +115,7 @@ fn value_parameter(p: &mut Parser, flavor: Flavor) {
115
// type Foo = fn(Bar::Baz);
116
// type Qux = fn(baz: Bar::Baz);
117
Flavor::FnPointer => {
118
- if p.at(IDENT) && p.nth(1) == T![:] && !p.nth_at(1, T![::]) {
+ if (p.at(IDENT) || p.at(UNDERSCORE)) && p.nth(1) == T![:] && !p.nth_at(1, T![::]) {
119
patterns::pattern_single(p);
120
types::ascription(p);
121
} else {
0 commit comments