Use multipart_suggestion
This commit is contained in:
parent
58765d61ee
commit
e9bf73cb2b
3 changed files with 21 additions and 23 deletions
|
|
@ -8,9 +8,13 @@ error: unexpected parenthesis surrounding `for` loop head
|
|||
--> $DIR/recover-for-loop-parens-around-head.rs:10:9
|
||||
|
|
||||
LL | for ( elem in vec ) {
|
||||
| ^-------------^
|
||||
| |
|
||||
| help: remove parenthesis in `for` loop: `elem in vec`
|
||||
| ^ ^
|
||||
|
|
||||
help: remove parenthesis in `for` loop
|
||||
|
|
||||
LL - for ( elem in vec ) {
|
||||
LL + for elem in vec {
|
||||
|
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/recover-for-loop-parens-around-head.rs:13:38
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue