-error: Rust has no postfix increment operator
- --> $DIR/issue-36499.rs:4:7
+error: leading `+` is not supported
+ --> $DIR/issue-36499.rs:4:9
|
LL | 2 + +2;
- | ^^^ not a valid postfix operator
+ | ^ unexpected `+`
|
-help: use `+= 1` instead
- |
-LL | { let tmp = 2 ; 2 += 1; tmp }2;
- | +++++++++++ ~~~~~~~~~~~~~~~
-help: or, if you don't need to use it as an expression, change it to this
+help: try removing the `+`
|
LL - 2 + +2;
-LL + 2 += 12;
- |
+LL + 2 + 2;
+ |
error: aborting due to previous error