1
1
error: statement with no effect
2
- --> $DIR/no_effect.rs:98 :5
2
+ --> $DIR/no_effect.rs:122 :5
3
3
|
4
4
LL | 0;
5
5
| ^^
@@ -8,151 +8,151 @@ LL | 0;
8
8
= help: to override `-D warnings` add `#[allow(clippy::no_effect)]`
9
9
10
10
error: statement with no effect
11
- --> $DIR/no_effect.rs:101 :5
11
+ --> $DIR/no_effect.rs:125 :5
12
12
|
13
13
LL | s2;
14
14
| ^^^
15
15
16
16
error: statement with no effect
17
- --> $DIR/no_effect.rs:103 :5
17
+ --> $DIR/no_effect.rs:127 :5
18
18
|
19
19
LL | Unit;
20
20
| ^^^^^
21
21
22
22
error: statement with no effect
23
- --> $DIR/no_effect.rs:105 :5
23
+ --> $DIR/no_effect.rs:129 :5
24
24
|
25
25
LL | Tuple(0);
26
26
| ^^^^^^^^^
27
27
28
28
error: statement with no effect
29
- --> $DIR/no_effect.rs:107 :5
29
+ --> $DIR/no_effect.rs:131 :5
30
30
|
31
31
LL | Struct { field: 0 };
32
32
| ^^^^^^^^^^^^^^^^^^^^
33
33
34
34
error: statement with no effect
35
- --> $DIR/no_effect.rs:109 :5
35
+ --> $DIR/no_effect.rs:133 :5
36
36
|
37
37
LL | Struct { ..s };
38
38
| ^^^^^^^^^^^^^^^
39
39
40
40
error: statement with no effect
41
- --> $DIR/no_effect.rs:111 :5
41
+ --> $DIR/no_effect.rs:135 :5
42
42
|
43
43
LL | Union { a: 0 };
44
44
| ^^^^^^^^^^^^^^^
45
45
46
46
error: statement with no effect
47
- --> $DIR/no_effect.rs:113 :5
47
+ --> $DIR/no_effect.rs:137 :5
48
48
|
49
49
LL | Enum::Tuple(0);
50
50
| ^^^^^^^^^^^^^^^
51
51
52
52
error: statement with no effect
53
- --> $DIR/no_effect.rs:115 :5
53
+ --> $DIR/no_effect.rs:139 :5
54
54
|
55
55
LL | Enum::Struct { field: 0 };
56
56
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
57
57
58
58
error: statement with no effect
59
- --> $DIR/no_effect.rs:117 :5
59
+ --> $DIR/no_effect.rs:141 :5
60
60
|
61
61
LL | 5 + 6;
62
62
| ^^^^^^
63
63
64
64
error: statement with no effect
65
- --> $DIR/no_effect.rs:119 :5
65
+ --> $DIR/no_effect.rs:143 :5
66
66
|
67
67
LL | *&42;
68
68
| ^^^^^
69
69
70
70
error: statement with no effect
71
- --> $DIR/no_effect.rs:121 :5
71
+ --> $DIR/no_effect.rs:145 :5
72
72
|
73
73
LL | &6;
74
74
| ^^^
75
75
76
76
error: statement with no effect
77
- --> $DIR/no_effect.rs:123 :5
77
+ --> $DIR/no_effect.rs:147 :5
78
78
|
79
79
LL | (5, 6, 7);
80
80
| ^^^^^^^^^^
81
81
82
82
error: statement with no effect
83
- --> $DIR/no_effect.rs:125 :5
83
+ --> $DIR/no_effect.rs:149 :5
84
84
|
85
85
LL | ..;
86
86
| ^^^
87
87
88
88
error: statement with no effect
89
- --> $DIR/no_effect.rs:127 :5
89
+ --> $DIR/no_effect.rs:151 :5
90
90
|
91
91
LL | 5..;
92
92
| ^^^^
93
93
94
94
error: statement with no effect
95
- --> $DIR/no_effect.rs:129 :5
95
+ --> $DIR/no_effect.rs:153 :5
96
96
|
97
97
LL | ..5;
98
98
| ^^^^
99
99
100
100
error: statement with no effect
101
- --> $DIR/no_effect.rs:131 :5
101
+ --> $DIR/no_effect.rs:155 :5
102
102
|
103
103
LL | 5..6;
104
104
| ^^^^^
105
105
106
106
error: statement with no effect
107
- --> $DIR/no_effect.rs:133 :5
107
+ --> $DIR/no_effect.rs:157 :5
108
108
|
109
109
LL | 5..=6;
110
110
| ^^^^^^
111
111
112
112
error: statement with no effect
113
- --> $DIR/no_effect.rs:135 :5
113
+ --> $DIR/no_effect.rs:159 :5
114
114
|
115
115
LL | [42, 55];
116
116
| ^^^^^^^^^
117
117
118
118
error: statement with no effect
119
- --> $DIR/no_effect.rs:137 :5
119
+ --> $DIR/no_effect.rs:161 :5
120
120
|
121
121
LL | [42, 55][1];
122
122
| ^^^^^^^^^^^^
123
123
124
124
error: statement with no effect
125
- --> $DIR/no_effect.rs:139 :5
125
+ --> $DIR/no_effect.rs:163 :5
126
126
|
127
127
LL | (42, 55).1;
128
128
| ^^^^^^^^^^^
129
129
130
130
error: statement with no effect
131
- --> $DIR/no_effect.rs:141 :5
131
+ --> $DIR/no_effect.rs:165 :5
132
132
|
133
133
LL | [42; 55];
134
134
| ^^^^^^^^^
135
135
136
136
error: statement with no effect
137
- --> $DIR/no_effect.rs:143 :5
137
+ --> $DIR/no_effect.rs:167 :5
138
138
|
139
139
LL | [42; 55][13];
140
140
| ^^^^^^^^^^^^^
141
141
142
142
error: statement with no effect
143
- --> $DIR/no_effect.rs:146 :5
143
+ --> $DIR/no_effect.rs:170 :5
144
144
|
145
145
LL | || x += 5;
146
146
| ^^^^^^^^^^
147
147
148
148
error: statement with no effect
149
- --> $DIR/no_effect.rs:149 :5
149
+ --> $DIR/no_effect.rs:173 :5
150
150
|
151
151
LL | FooString { s: s };
152
152
| ^^^^^^^^^^^^^^^^^^^
153
153
154
154
error: binding to `_` prefixed variable with no side-effect
155
- --> $DIR/no_effect.rs:151 :5
155
+ --> $DIR/no_effect.rs:175 :5
156
156
|
157
157
LL | let _unused = 1;
158
158
| ^^^^^^^^^^^^^^^^
@@ -161,19 +161,19 @@ LL | let _unused = 1;
161
161
= help: to override `-D warnings` add `#[allow(clippy::no_effect_underscore_binding)]`
162
162
163
163
error: binding to `_` prefixed variable with no side-effect
164
- --> $DIR/no_effect.rs:154 :5
164
+ --> $DIR/no_effect.rs:178 :5
165
165
|
166
166
LL | let _penguin = || println!("Some helpful closure");
167
167
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
168
168
169
169
error: binding to `_` prefixed variable with no side-effect
170
- --> $DIR/no_effect.rs:156 :5
170
+ --> $DIR/no_effect.rs:180 :5
171
171
|
172
172
LL | let _duck = Struct { field: 0 };
173
173
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
174
174
175
175
error: binding to `_` prefixed variable with no side-effect
176
- --> $DIR/no_effect.rs:158 :5
176
+ --> $DIR/no_effect.rs:182 :5
177
177
|
178
178
LL | let _cat = [2, 4, 6, 8][2];
179
179
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments