fix parser mistaking const closures for const item
This commit is contained in:
parent
ad8e1dc286
commit
679dde7338
5 changed files with 30 additions and 9 deletions
|
@ -2108,7 +2108,7 @@ impl<'a> Parser<'a> {
|
|||
ClosureBinder::NotPresent
|
||||
};
|
||||
|
||||
let constness = self.parse_constness(Case::Sensitive);
|
||||
let constness = self.parse_closure_constness(Case::Sensitive);
|
||||
|
||||
let movability =
|
||||
if self.eat_keyword(kw::Static) { Movability::Static } else { Movability::Movable };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue