]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/associated-types/issue-36499.stderr
Auto merge of #2731 - RalfJung:rustup, r=RalfJung
[rust.git] / src / test / ui / associated-types / issue-36499.stderr
index b49a34be98f3dd8fd77bddcc5a96f221850b7c0b..80e42b61d2057ea1a045d6ec6d41176d9bcea655 100644 (file)
@@ -1,18 +1,14 @@
-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