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