diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index adaa5670e80..3bc8a3021cb 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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)) {