Fix tidy error
This commit is contained in:
parent
a9b746bb23
commit
6aafdc3781
@ -3433,8 +3433,11 @@ impl<'a> Parser<'a> {
|
||||
pats.push(self.parse_pat()?);
|
||||
|
||||
if self.token == token::OrOr {
|
||||
let mut err = self.struct_span_err(self.span, "unexpected token `||` after pattern");
|
||||
err.span_suggestion(self.span, "use a single `|` to specify multiple patterns", "|".to_owned());
|
||||
let mut err = self.struct_span_err(self.span,
|
||||
"unexpected token `||` after pattern");
|
||||
err.span_suggestion(self.span,
|
||||
"use a single `|` to specify multiple patterns",
|
||||
"|".to_owned());
|
||||
err.emit();
|
||||
self.bump();
|
||||
} else if self.check(&token::BinOp(token::Or)) {
|
||||
|
Loading…
Reference in New Issue
Block a user