2023-02-26 10:17:23 -06:00
|
|
|
error: Rust has no postfix decrement operator
|
2023-02-27 07:25:03 -06:00
|
|
|
--> $DIR/issue-108495-dec.rs:3:18
|
2023-02-26 10:17:23 -06:00
|
|
|
|
|
|
|
|
LL | let _ = i + i--;
|
|
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
|
|
|
error: Rust has no postfix decrement operator
|
2023-02-27 07:25:03 -06:00
|
|
|
--> $DIR/issue-108495-dec.rs:9:14
|
2023-02-26 10:17:23 -06:00
|
|
|
|
|
|
|
|
LL | let _ = i-- + i--;
|
|
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
|
|
|
|
help: use `-= 1` instead
|
|
|
|
|
|
|
|
|
LL | let _ = { let tmp = i; i -= 1; tmp } + i--;
|
|
|
|
| +++++++++++ ~~~~~~~~~~~~~~~
|
|
|
|
|
2023-02-27 07:25:03 -06:00
|
|
|
error: Rust has no postfix decrement operator
|
|
|
|
--> $DIR/issue-108495-dec.rs:14:20
|
2023-02-26 10:17:23 -06:00
|
|
|
|
|
|
|
|
LL | let _ = --i + i--;
|
2023-02-27 07:25:03 -06:00
|
|
|
| ^^ not a valid postfix operator
|
2023-02-26 10:17:23 -06:00
|
|
|
|
|
|
|
error: Rust has no postfix decrement operator
|
2023-02-27 07:25:03 -06:00
|
|
|
--> $DIR/issue-108495-dec.rs:19:14
|
2023-02-26 10:17:23 -06:00
|
|
|
|
|
|
|
|
LL | let _ = i-- + --i;
|
|
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
|
|
|
|
help: use `-= 1` instead
|
|
|
|
|
|
|
|
|
LL | let _ = { let tmp = i; i -= 1; tmp } + --i;
|
|
|
|
| +++++++++++ ~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
error: Rust has no postfix decrement operator
|
2023-02-27 07:25:03 -06:00
|
|
|
--> $DIR/issue-108495-dec.rs:24:24
|
2023-02-26 10:17:23 -06:00
|
|
|
|
|
|
|
|
LL | let _ = (1 + 2 + i)--;
|
|
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
|
|
|
|
help: use `-= 1` instead
|
|
|
|
|
|
|
|
|
LL | let _ = { let tmp = (1 + 2 + i); (1 + 2 + i) -= 1; tmp };
|
|
|
|
| +++++++++++ ~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
error: Rust has no postfix decrement operator
|
2023-02-27 07:25:03 -06:00
|
|
|
--> $DIR/issue-108495-dec.rs:29:15
|
2023-02-26 10:17:23 -06:00
|
|
|
|
|
|
|
|
LL | let _ = (i-- + 1) + 2;
|
|
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
|
|
|
|
help: use `-= 1` instead
|
|
|
|
|
|
|
|
|
LL | let _ = ({ let tmp = i; i -= 1; tmp } + 1) + 2;
|
|
|
|
| +++++++++++ ~~~~~~~~~~~~~~~
|
|
|
|
|
2023-02-27 07:25:03 -06:00
|
|
|
error: Rust has no postfix decrement operator
|
2023-02-28 09:28:14 -06:00
|
|
|
--> $DIR/issue-108495-dec.rs:35:10
|
2023-02-27 07:25:03 -06:00
|
|
|
|
|
|
|
|
LL | i--;
|
|
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
|
|
|
|
help: use `-= 1` instead
|
|
|
|
|
|
|
|
|
LL | i -= 1;
|
|
|
|
| ~~~~
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2023-02-26 10:17:23 -06:00
|
|
|
|