Use multipart_suggestion

This commit is contained in:
Yuki Okushi 2021-09-17 13:39:26 +09:00
parent 58765d61ee
commit e9bf73cb2b
No known key found for this signature in database
GPG key ID: DABA5B072961C18A
3 changed files with 21 additions and 23 deletions

View file

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