Auto merge of #103020 - lyming2007:issue-102598-fix, r=jackh726
error parsing lifetime following by Sized and message + between them Fixes #102598
This commit is contained in:
commit
58f5a0180c
4 changed files with 70 additions and 1 deletions
|
@ -2464,7 +2464,6 @@ impl<'a> Parser<'a> {
|
|||
};
|
||||
let (pat, ty) = if is_name_required || this.is_named_param() {
|
||||
debug!("parse_param_general parse_pat (is_name_required:{})", is_name_required);
|
||||
|
||||
let (pat, colon) = this.parse_fn_param_pat_colon()?;
|
||||
if !colon {
|
||||
let mut err = this.unexpected::<()>().unwrap_err();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue