2022-03-23 19:26:59 -05:00
|
|
|
error: Rust has no prefix increment operator
|
|
|
|
--> $DIR/increment-autofix.rs:5:5
|
2021-03-25 23:04:03 -05:00
|
|
|
|
|
2022-03-23 19:26:59 -05:00
|
|
|
LL | ++i;
|
|
|
|
| ^^ not a valid prefix operator
|
2021-03-25 23:04:03 -05:00
|
|
|
|
|
2021-09-06 18:16:52 -05:00
|
|
|
help: use `+= 1` instead
|
2021-03-25 23:04:03 -05:00
|
|
|
|
|
2022-03-23 19:26:59 -05:00
|
|
|
LL - ++i;
|
2022-02-17 16:52:52 -06:00
|
|
|
LL + i += 1;
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2021-03-25 23:04:03 -05:00
|
|
|
|
2022-03-23 19:26:59 -05:00
|
|
|
error: Rust has no prefix increment operator
|
|
|
|
--> $DIR/increment-autofix.rs:11:11
|
2022-02-17 16:58:46 -06:00
|
|
|
|
|
2022-03-23 19:26:59 -05:00
|
|
|
LL | while ++i < 5 {
|
2022-03-23 21:47:45 -05:00
|
|
|
| ----- ^^ not a valid prefix operator
|
|
|
|
| |
|
|
|
|
| while parsing the condition of this `while` expression
|
2022-02-17 16:58:46 -06:00
|
|
|
|
|
2022-02-18 17:32:46 -06:00
|
|
|
help: use `+= 1` instead
|
2022-02-17 16:58:46 -06:00
|
|
|
|
|
2022-03-23 19:26:59 -05:00
|
|
|
LL | while { i += 1; i } < 5 {
|
|
|
|
| ~ +++++++++
|
2022-02-17 16:58:46 -06:00
|
|
|
|
2021-09-06 18:16:52 -05:00
|
|
|
error: Rust has no prefix increment operator
|
2022-03-23 19:26:59 -05:00
|
|
|
--> $DIR/increment-autofix.rs:19:5
|
2021-03-25 23:04:03 -05:00
|
|
|
|
|
2022-03-23 19:26:59 -05:00
|
|
|
LL | ++tmp;
|
2021-09-06 18:16:52 -05:00
|
|
|
| ^^ not a valid prefix operator
|
2021-03-25 23:04:03 -05:00
|
|
|
|
|
2021-09-06 18:16:52 -05:00
|
|
|
help: use `+= 1` instead
|
2021-03-25 23:04:03 -05:00
|
|
|
|
|
2022-03-23 19:26:59 -05:00
|
|
|
LL - ++tmp;
|
|
|
|
LL + tmp += 1;
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2021-03-25 23:04:03 -05:00
|
|
|
|
2021-09-06 18:16:52 -05:00
|
|
|
error: Rust has no prefix increment operator
|
2022-03-23 19:26:59 -05:00
|
|
|
--> $DIR/increment-autofix.rs:25:11
|
2021-03-25 23:04:03 -05:00
|
|
|
|
|
2022-03-23 19:26:59 -05:00
|
|
|
LL | while ++tmp < 5 {
|
2022-03-23 21:47:45 -05:00
|
|
|
| ----- ^^ not a valid prefix operator
|
|
|
|
| |
|
|
|
|
| while parsing the condition of this `while` expression
|
2021-03-25 23:04:03 -05:00
|
|
|
|
|
2021-09-06 18:16:52 -05:00
|
|
|
help: use `+= 1` instead
|
2021-03-25 23:04:03 -05:00
|
|
|
|
|
2022-03-23 19:26:59 -05:00
|
|
|
LL | while { tmp += 1; tmp } < 5 {
|
|
|
|
| ~ +++++++++++
|
2021-03-25 23:04:03 -05:00
|
|
|
|
2022-03-23 19:26:59 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2021-03-25 23:04:03 -05:00
|
|
|
|