token::LArrow
can begin arguments
`<-` may indicate the start of a negative const argument.
This commit is contained in:
parent
7ac02005f3
commit
594685b5a2
3 changed files with 4 additions and 9 deletions
|
@ -2319,7 +2319,8 @@ impl<'a> Parser<'a> {
|
|||
let ident = self.parse_path_segment_ident()?;
|
||||
|
||||
let is_args_start = |token: &token::Token| match *token {
|
||||
token::Lt | token::BinOp(token::Shl) | token::OpenDelim(token::Paren) => true,
|
||||
token::Lt | token::BinOp(token::Shl) | token::OpenDelim(token::Paren)
|
||||
| token::LArrow => true,
|
||||
_ => false,
|
||||
};
|
||||
let check_args_start = |this: &mut Self| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue