rust/src/test/ui/parser/issues/issue-88276-unary-plus.stderr

51 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-08-31 22:07:58 -05:00
error: leading `+` is not supported
--> $DIR/issue-88276-unary-plus.rs:4:13
|
LL | let _ = +1;
| ^ unexpected `+`
2021-08-31 22:07:58 -05:00
|
help: try removing the `+`
2021-08-31 22:07:58 -05:00
|
LL - let _ = +1;
LL + let _ = 1;
|
2021-08-31 22:07:58 -05:00
error: leading `+` is not supported
--> $DIR/issue-88276-unary-plus.rs:5:20
2021-08-31 22:07:58 -05:00
|
LL | let _ = (1.0 + +2.0) * +3.0;
| ^ unexpected `+`
|
help: try removing the `+`
|
LL - let _ = (1.0 + +2.0) * +3.0;
LL + let _ = (1.0 + 2.0) * +3.0;
|
2021-08-31 22:07:58 -05:00
error: leading `+` is not supported
--> $DIR/issue-88276-unary-plus.rs:5:28
2021-08-31 22:07:58 -05:00
|
LL | let _ = (1.0 + +2.0) * +3.0;
| ^ unexpected `+`
2021-08-31 22:07:58 -05:00
|
help: try removing the `+`
|
LL - let _ = (1.0 + +2.0) * +3.0;
LL + let _ = (1.0 + +2.0) * 3.0;
|
2021-08-31 22:07:58 -05:00
error: leading `+` is not supported
--> $DIR/issue-88276-unary-plus.rs:7:14
|
LL | let _ = [+3, 4+6];
| ^ unexpected `+`
|
help: try removing the `+`
2021-08-31 22:07:58 -05:00
|
LL - let _ = [+3, 4+6];
LL + let _ = [3, 4+6];
|
2021-08-31 22:07:58 -05:00
error: aborting due to 4 previous errors
2021-08-31 22:07:58 -05:00