token::LArrow can begin arguments
`<-` may indicate the start of a negative const argument.
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user