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