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