@@ -2,82 +2,49 @@ error: leading `+` is not supported
2
2
--> $DIR/issue-88276-unary-plus.rs:4:13
3
3
|
4
4
LL | let _ = +1;
5
- | ^
6
- | |
7
- | unexpected `+`
8
- | help: try removing the `+`
9
-
10
- error: leading `+` is not supported
11
- --> $DIR/issue-88276-unary-plus.rs:5:14
5
+ | ^ unexpected `+`
12
6
|
13
- LL | let _ = -+(1+2)*3;
14
- | ^
15
- | |
16
- | unexpected `+`
17
- | help: try removing the `+`
18
-
19
- error: leading `+` is not supported
20
- --> $DIR/issue-88276-unary-plus.rs:6:14
7
+ help: try removing the `+`
21
8
|
22
- LL | let _ = -+-+(1+2)*3;
23
- | ^
24
- | |
25
- | unexpected `+`
26
- | help: try removing the `+`
9
+ LL - let _ = +1;
10
+ LL + let _ = 1;
11
+ |
27
12
28
13
error: leading `+` is not supported
29
- --> $DIR/issue-88276-unary-plus.rs:6:16
14
+ --> $DIR/issue-88276-unary-plus.rs:5:20
30
15
|
31
- LL | let _ = -+-+(1+2)*3;
32
- | ^
33
- | |
34
- | unexpected `+`
35
- | help: try removing the `+`
36
-
37
- error: leading `+` is not supported
38
- --> $DIR/issue-88276-unary-plus.rs:8:18
16
+ LL | let _ = (1.0 + +2.0) * +3.0;
17
+ | ^ unexpected `+`
39
18
|
40
- LL | let _ = (1 + +2) * +3;
41
- | ^
42
- | |
43
- | unexpected `+`
44
- | help: try removing the `+`
45
-
46
- error: leading `+` is not supported
47
- --> $DIR/issue-88276-unary-plus.rs:8:24
19
+ help: try removing the `+`
48
20
|
49
- LL | let _ = (1 + +2) * +3;
50
- | ^
51
- | |
52
- | unexpected `+`
53
- | help: try removing the `+`
21
+ LL - let _ = (1.0 + +2.0) * +3.0;
22
+ LL + let _ = (1.0 + 2.0) * +3.0;
23
+ |
54
24
55
25
error: leading `+` is not supported
56
- --> $DIR/issue-88276-unary-plus.rs:10:14
26
+ --> $DIR/issue-88276-unary-plus.rs:5:28
57
27
|
58
- LL | let _ = (+&"hello");
59
- | ^
60
- | |
61
- | unexpected `+`
62
- | help: try removing the `+`
63
-
64
- error: leading `+` is not supported
65
- --> $DIR/issue-88276-unary-plus.rs:11:13
28
+ LL | let _ = (1.0 + +2.0) * +3.0;
29
+ | ^ unexpected `+`
66
30
|
67
- LL | let _ = +[+3, 4+6];
68
- | ^
69
- | |
70
- | unexpected `+`
71
- | help: try removing the `+`
31
+ help: try removing the `+`
32
+ |
33
+ LL - let _ = (1.0 + +2.0) * +3.0;
34
+ LL + let _ = (1.0 + +2.0) * 3.0;
35
+ |
72
36
73
37
error: leading `+` is not supported
74
- --> $DIR/issue-88276-unary-plus.rs:11:15
38
+ --> $DIR/issue-88276-unary-plus.rs:7:14
39
+ |
40
+ LL | let _ = [+3, 4+6];
41
+ | ^ unexpected `+`
42
+ |
43
+ help: try removing the `+`
75
44
|
76
- LL | let _ = +[+3, 4+6];
77
- | ^
78
- | |
79
- | unexpected `+`
80
- | help: try removing the `+`
45
+ LL - let _ = [+3, 4+6];
46
+ LL + let _ = [3, 4+6];
47
+ |
81
48
82
- error: aborting due to 9 previous errors
49
+ error: aborting due to 4 previous errors
83
50
0 commit comments