postfix decrement and prefix decrement has no warning #108495
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
rust compiler throws error when postfix increment of prefix increment is used, but when decrement is it does not show where the problem is
for example this just compiles with no warning
the output will be 11 which is not as expected
edit
--i is double negation is rust which I didn't know
but i-- give wrong error
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: