mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
parent
3da53ab3e7
commit
0e10e77a78
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ fn value_parameter(p: &mut Parser, flavor: Flavor) {
|
|||
// type Foo = fn(Bar::Baz);
|
||||
// type Qux = fn(baz: Bar::Baz);
|
||||
Flavor::FnPointer => {
|
||||
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![::]) {
|
||||
patterns::pattern_single(p);
|
||||
types::ascription(p);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue