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