1
1
error: this looks like an `else {..}` but the `else` is missing
2
- --> $DIR/formatting.rs:12 :6
2
+ --> $DIR/formatting.rs:15 :6
3
3
|
4
4
LL | } {
5
5
| ^
@@ -8,31 +8,31 @@ LL | } {
8
8
= note: to remove this lint, add the missing `else` or add a new line before the next block
9
9
10
10
error: this looks like an `else if` but the `else` is missing
11
- --> $DIR/formatting.rs:16 :6
11
+ --> $DIR/formatting.rs:19 :6
12
12
|
13
13
LL | } if foo() {
14
14
| ^
15
15
|
16
16
= note: to remove this lint, add the missing `else` or add a new line before the second `if`
17
17
18
18
error: this looks like an `else if` but the `else` is missing
19
- --> $DIR/formatting.rs:23 :10
19
+ --> $DIR/formatting.rs:26 :10
20
20
|
21
21
LL | } if foo() {
22
22
| ^
23
23
|
24
24
= note: to remove this lint, add the missing `else` or add a new line before the second `if`
25
25
26
26
error: this looks like an `else if` but the `else` is missing
27
- --> $DIR/formatting.rs:31 :10
27
+ --> $DIR/formatting.rs:34 :10
28
28
|
29
29
LL | } if foo() {
30
30
| ^
31
31
|
32
32
= note: to remove this lint, add the missing `else` or add a new line before the second `if`
33
33
34
34
error: this is an `else {..}` but the formatting might hide it
35
- --> $DIR/formatting.rs:40 :6
35
+ --> $DIR/formatting.rs:43 :6
36
36
|
37
37
LL | } else
38
38
| ______^
@@ -42,7 +42,7 @@ LL | | {
42
42
= note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
43
43
44
44
error: this is an `else {..}` but the formatting might hide it
45
- --> $DIR/formatting.rs:45 :6
45
+ --> $DIR/formatting.rs:48 :6
46
46
|
47
47
LL | }
48
48
| ______^
@@ -53,7 +53,7 @@ LL | | {
53
53
= note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
54
54
55
55
error: this is an `else if` but the formatting might hide it
56
- --> $DIR/formatting.rs:51 :6
56
+ --> $DIR/formatting.rs:54 :6
57
57
|
58
58
LL | } else
59
59
| ______^
@@ -63,7 +63,7 @@ LL | | if foo() { // the span of the above error should continue here
63
63
= note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
64
64
65
65
error: this is an `else if` but the formatting might hide it
66
- --> $DIR/formatting.rs:56 :6
66
+ --> $DIR/formatting.rs:59 :6
67
67
|
68
68
LL | }
69
69
| ______^
@@ -74,7 +74,7 @@ LL | | if foo() { // the span of the above error should continue here
74
74
= note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
75
75
76
76
error: this looks like you are trying to use `.. -= ..`, but you really are doing `.. = (- ..)`
77
- --> $DIR/formatting.rs:97 :6
77
+ --> $DIR/formatting.rs:100 :6
78
78
|
79
79
LL | a =- 35;
80
80
| ^^^^
@@ -83,23 +83,23 @@ LL | a =- 35;
83
83
= note: to remove this lint, use either `-=` or `= -`
84
84
85
85
error: this looks like you are trying to use `.. *= ..`, but you really are doing `.. = (* ..)`
86
- --> $DIR/formatting.rs:98 :6
86
+ --> $DIR/formatting.rs:101 :6
87
87
|
88
88
LL | a =* &191;
89
89
| ^^^^
90
90
|
91
91
= note: to remove this lint, use either `*=` or `= *`
92
92
93
93
error: this looks like you are trying to use `.. != ..`, but you really are doing `.. = (! ..)`
94
- --> $DIR/formatting.rs:101 :6
94
+ --> $DIR/formatting.rs:104 :6
95
95
|
96
96
LL | b =! false;
97
97
| ^^^^
98
98
|
99
99
= note: to remove this lint, use either `!=` or `= !`
100
100
101
101
error: possibly missing a comma here
102
- --> $DIR/formatting.rs:110 :19
102
+ --> $DIR/formatting.rs:113 :19
103
103
|
104
104
LL | -1, -2, -3 // <= no comma here
105
105
| ^
@@ -108,7 +108,7 @@ LL | -1, -2, -3 // <= no comma here
108
108
= note: to remove this lint, add a comma or write the expr in a single line
109
109
110
110
error: possibly missing a comma here
111
- --> $DIR/formatting.rs:114 :19
111
+ --> $DIR/formatting.rs:117 :19
112
112
|
113
113
LL | -1, -2, -3 // <= no comma here
114
114
| ^
0 commit comments