Recover parentheses in range patterns
Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
This commit is contained in:
parent
e51e98dde6
commit
4e0baddbbf
7 changed files with 151 additions and 18 deletions
|
@ -767,6 +767,9 @@ parse_unexpected_if_with_if = unexpected `if` in the condition expression
|
|||
parse_unexpected_lifetime_in_pattern = unexpected lifetime `{$symbol}` in pattern
|
||||
.suggestion = remove the lifetime
|
||||
|
||||
parse_unexpected_paren_in_range_pat = range pattern bounds cannot have parentheses
|
||||
parse_unexpected_paren_in_range_pat_sugg = remove these parentheses
|
||||
|
||||
parse_unexpected_parentheses_in_for_head = unexpected parentheses surrounding `for` loop head
|
||||
.suggestion = remove parentheses in `for` loop
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue