Fix tidy error

This commit is contained in:
keatinge 2018-01-06 15:29:08 -05:00
parent a9b746bb23
commit 6aafdc3781

View File

@ -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)) {