2022-02-17 20:28:07 +00:00
|
|
|
error: Rust has no postfix increment operator
|
2022-11-25 21:33:13 +00:00
|
|
|
--> $DIR/increment-autofix-2.rs:13:6
|
2022-03-24 00:26:59 +00:00
|
|
|
|
|
|
|
|
LL | i++;
|
|
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
|
|
|
|
help: use `+= 1` instead
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | i += 1;
|
|
|
|
| ~~~~
|
2022-03-24 00:26:59 +00:00
|
|
|
|
|
|
|
error: Rust has no postfix increment operator
|
2022-11-25 21:33:13 +00:00
|
|
|
--> $DIR/increment-autofix-2.rs:19:12
|
2022-03-24 00:26:59 +00:00
|
|
|
|
|
|
|
|
LL | while i++ < 5 {
|
2022-03-24 02:47:45 +00:00
|
|
|
| ----- ^^ not a valid postfix operator
|
|
|
|
| |
|
|
|
|
| while parsing the condition of this `while` expression
|
2022-03-24 00:26:59 +00:00
|
|
|
|
|
|
|
|
help: use `+= 1` instead
|
|
|
|
|
|
|
|
|
LL | while { let tmp = i; i += 1; tmp } < 5 {
|
|
|
|
| +++++++++++ ~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
error: Rust has no postfix increment operator
|
2022-11-25 21:33:13 +00:00
|
|
|
--> $DIR/increment-autofix-2.rs:27:8
|
2022-03-24 00:26:59 +00:00
|
|
|
|
|
|
|
|
LL | tmp++;
|
|
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
|
|
|
|
help: use `+= 1` instead
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | tmp += 1;
|
|
|
|
| ~~~~
|
2022-03-24 00:26:59 +00:00
|
|
|
|
|
|
|
error: Rust has no postfix increment operator
|
2022-11-25 21:33:13 +00:00
|
|
|
--> $DIR/increment-autofix-2.rs:33:14
|
2022-03-24 00:26:59 +00:00
|
|
|
|
|
|
|
|
LL | while tmp++ < 5 {
|
2022-03-24 02:47:45 +00:00
|
|
|
| ----- ^^ not a valid postfix operator
|
|
|
|
| |
|
|
|
|
| while parsing the condition of this `while` expression
|
2022-03-24 00:26:59 +00:00
|
|
|
|
|
|
|
|
help: use `+= 1` instead
|
|
|
|
|
|
|
|
|
LL | while { let tmp_ = tmp; tmp += 1; tmp_ } < 5 {
|
|
|
|
| ++++++++++++ ~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
error: Rust has no postfix increment operator
|
2022-11-25 21:33:13 +00:00
|
|
|
--> $DIR/increment-autofix-2.rs:41:16
|
2022-02-17 20:28:07 +00:00
|
|
|
|
|
|
|
|
LL | foo.bar.qux++;
|
|
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
|
2022-02-17 22:19:59 +00:00
|
|
|
help: use `+= 1` instead
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | foo.bar.qux += 1;
|
|
|
|
| ~~~~
|
2022-02-17 20:28:07 +00:00
|
|
|
|
2022-02-17 22:58:46 +00:00
|
|
|
error: Rust has no postfix increment operator
|
2022-11-25 21:33:13 +00:00
|
|
|
--> $DIR/increment-autofix-2.rs:51:10
|
2022-02-17 22:58:46 +00:00
|
|
|
|
|
|
|
|
LL | s.tmp++;
|
|
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
|
|
|
|
help: use `+= 1` instead
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | s.tmp += 1;
|
|
|
|
| ~~~~
|
2022-02-17 22:58:46 +00:00
|
|
|
|
2022-02-17 20:28:07 +00:00
|
|
|
error: Rust has no prefix increment operator
|
2022-11-25 21:33:13 +00:00
|
|
|
--> $DIR/increment-autofix-2.rs:58:5
|
2022-02-17 20:28:07 +00:00
|
|
|
|
|
|
|
|
LL | ++foo.bar.qux;
|
|
|
|
| ^^ not a valid prefix operator
|
|
|
|
|
|
2022-02-17 22:19:59 +00:00
|
|
|
help: use `+= 1` instead
|
|
|
|
|
|
|
|
|
LL - ++foo.bar.qux;
|
|
|
|
LL + foo.bar.qux += 1;
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2022-02-17 20:28:07 +00:00
|
|
|
|
2022-03-24 00:26:59 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2022-02-17 20:28:07 +00:00
|
|
|
|