parser: document ban_unexpected_or_or.
This commit is contained in:
parent
39f5e5bec4
commit
8f6a0cdb0f
1 changed files with 1 additions and 0 deletions
|
|
@ -90,6 +90,7 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
/// We have parsed `||` instead of `|`. Error and suggest `|` instead.
|
||||
fn ban_unexpected_or_or(&mut self) {
|
||||
self.struct_span_err(self.token.span, "unexpected token `||` after pattern")
|
||||
.span_suggestion(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue