Bless tests
This commit is contained in:
parent
073010d425
commit
713a11b919
@ -1,13 +1,17 @@
|
||||
error: leading `+` is not supported
|
||||
--> $DIR/issue-36499.rs:4:9
|
||||
error: Rust has no postfix increment operator
|
||||
--> $DIR/issue-36499.rs:4:7
|
||||
|
|
||||
LL | 2 + +2;
|
||||
| ^ unexpected `+`
|
||||
| ^^^ not a valid postfix operator
|
||||
|
|
||||
help: try removing the `+`
|
||||
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
|
||||
|
|
||||
LL - 2 + +2;
|
||||
LL + 2 + 2;
|
||||
LL + 2 += 12;
|
||||
|
|
||||
|
||||
error: aborting due to previous error
|
||||
|
@ -10,16 +10,20 @@ LL - let _ = +1;
|
||||
LL + let _ = 1;
|
||||
|
|
||||
|
||||
error: leading `+` is not supported
|
||||
--> $DIR/issue-88276-unary-plus.rs:5:20
|
||||
error: Rust has no postfix increment operator
|
||||
--> $DIR/issue-88276-unary-plus.rs:5:18
|
||||
|
|
||||
LL | let _ = (1.0 + +2.0) * +3.0;
|
||||
| ^ unexpected `+`
|
||||
| ^^^ not a valid postfix operator
|
||||
|
|
||||
help: try removing the `+`
|
||||
help: use `+= 1` instead
|
||||
|
|
||||
LL | let _ = ({ let tmp = 1.0 ; 1.0 += 1; tmp }2.0) * +3.0;
|
||||
| +++++++++++ ~~~~~~~~~~~~~~~~~
|
||||
help: or, if you don't need to use it as an expression, change it to this
|
||||
|
|
||||
LL - let _ = (1.0 + +2.0) * +3.0;
|
||||
LL + let _ = (1.0 + 2.0) * +3.0;
|
||||
LL + let _ = (1.0 += 12.0) * +3.0;
|
||||
|
|
||||
|
||||
error: leading `+` is not supported
|
||||
|
Loading…
x
Reference in New Issue
Block a user