1 error: arithmetic operation that can potentially result in unexpected side-effects
2 --> $DIR/arithmetic_side_effects.rs:78:13
4 LL | let _ = String::new() + "";
7 = note: `-D clippy::arithmetic-side-effects` implied by `-D warnings`
9 error: arithmetic operation that can potentially result in unexpected side-effects
10 --> $DIR/arithmetic_side_effects.rs:86:27
12 LL | let inferred_string = string + "";
15 error: arithmetic operation that can potentially result in unexpected side-effects
16 --> $DIR/arithmetic_side_effects.rs:90:13
18 LL | let _ = inferred_string + "";
19 | ^^^^^^^^^^^^^^^^^^^^
21 error: arithmetic operation that can potentially result in unexpected side-effects
22 --> $DIR/arithmetic_side_effects.rs:165:5
27 error: arithmetic operation that can potentially result in unexpected side-effects
28 --> $DIR/arithmetic_side_effects.rs:166:5
33 error: arithmetic operation that can potentially result in unexpected side-effects
34 --> $DIR/arithmetic_side_effects.rs:167:5
39 error: arithmetic operation that can potentially result in unexpected side-effects
40 --> $DIR/arithmetic_side_effects.rs:168:5
45 error: arithmetic operation that can potentially result in unexpected side-effects
46 --> $DIR/arithmetic_side_effects.rs:169:5
51 error: arithmetic operation that can potentially result in unexpected side-effects
52 --> $DIR/arithmetic_side_effects.rs:170:5
57 error: arithmetic operation that can potentially result in unexpected side-effects
58 --> $DIR/arithmetic_side_effects.rs:171:5
63 error: arithmetic operation that can potentially result in unexpected side-effects
64 --> $DIR/arithmetic_side_effects.rs:172:5
69 error: arithmetic operation that can potentially result in unexpected side-effects
70 --> $DIR/arithmetic_side_effects.rs:173:5
75 error: arithmetic operation that can potentially result in unexpected side-effects
76 --> $DIR/arithmetic_side_effects.rs:174:5
81 error: arithmetic operation that can potentially result in unexpected side-effects
82 --> $DIR/arithmetic_side_effects.rs:177:10
87 error: arithmetic operation that can potentially result in unexpected side-effects
88 --> $DIR/arithmetic_side_effects.rs:178:10
93 error: arithmetic operation that can potentially result in unexpected side-effects
94 --> $DIR/arithmetic_side_effects.rs:179:10
99 error: arithmetic operation that can potentially result in unexpected side-effects
100 --> $DIR/arithmetic_side_effects.rs:180:10
105 error: arithmetic operation that can potentially result in unexpected side-effects
106 --> $DIR/arithmetic_side_effects.rs:181:10
111 error: arithmetic operation that can potentially result in unexpected side-effects
112 --> $DIR/arithmetic_side_effects.rs:182:10
117 error: arithmetic operation that can potentially result in unexpected side-effects
118 --> $DIR/arithmetic_side_effects.rs:183:10
123 error: arithmetic operation that can potentially result in unexpected side-effects
124 --> $DIR/arithmetic_side_effects.rs:184:10
129 error: arithmetic operation that can potentially result in unexpected side-effects
130 --> $DIR/arithmetic_side_effects.rs:185:10
135 error: arithmetic operation that can potentially result in unexpected side-effects
136 --> $DIR/arithmetic_side_effects.rs:186:10
141 error: arithmetic operation that can potentially result in unexpected side-effects
142 --> $DIR/arithmetic_side_effects.rs:187:10
147 error: arithmetic operation that can potentially result in unexpected side-effects
148 --> $DIR/arithmetic_side_effects.rs:188:10
153 error: arithmetic operation that can potentially result in unexpected side-effects
154 --> $DIR/arithmetic_side_effects.rs:189:10
159 error: arithmetic operation that can potentially result in unexpected side-effects
160 --> $DIR/arithmetic_side_effects.rs:190:10
165 error: arithmetic operation that can potentially result in unexpected side-effects
166 --> $DIR/arithmetic_side_effects.rs:191:10
171 error: arithmetic operation that can potentially result in unexpected side-effects
172 --> $DIR/arithmetic_side_effects.rs:192:10
177 error: arithmetic operation that can potentially result in unexpected side-effects
178 --> $DIR/arithmetic_side_effects.rs:193:10
183 error: arithmetic operation that can potentially result in unexpected side-effects
184 --> $DIR/arithmetic_side_effects.rs:194:10
189 error: arithmetic operation that can potentially result in unexpected side-effects
190 --> $DIR/arithmetic_side_effects.rs:195:10
195 error: arithmetic operation that can potentially result in unexpected side-effects
196 --> $DIR/arithmetic_side_effects.rs:198:13
198 LL | let _ = Custom + 0;
201 error: arithmetic operation that can potentially result in unexpected side-effects
202 --> $DIR/arithmetic_side_effects.rs:199:13
204 LL | let _ = Custom + 1;
207 error: arithmetic operation that can potentially result in unexpected side-effects
208 --> $DIR/arithmetic_side_effects.rs:200:13
210 LL | let _ = Custom + 2;
213 error: arithmetic operation that can potentially result in unexpected side-effects
214 --> $DIR/arithmetic_side_effects.rs:201:13
216 LL | let _ = Custom + 0.0;
219 error: arithmetic operation that can potentially result in unexpected side-effects
220 --> $DIR/arithmetic_side_effects.rs:202:13
222 LL | let _ = Custom + 1.0;
225 error: arithmetic operation that can potentially result in unexpected side-effects
226 --> $DIR/arithmetic_side_effects.rs:203:13
228 LL | let _ = Custom + 2.0;
231 error: arithmetic operation that can potentially result in unexpected side-effects
232 --> $DIR/arithmetic_side_effects.rs:204:13
234 LL | let _ = Custom - 0;
237 error: arithmetic operation that can potentially result in unexpected side-effects
238 --> $DIR/arithmetic_side_effects.rs:205:13
240 LL | let _ = Custom - 1;
243 error: arithmetic operation that can potentially result in unexpected side-effects
244 --> $DIR/arithmetic_side_effects.rs:206:13
246 LL | let _ = Custom - 2;
249 error: arithmetic operation that can potentially result in unexpected side-effects
250 --> $DIR/arithmetic_side_effects.rs:207:13
252 LL | let _ = Custom - 0.0;
255 error: arithmetic operation that can potentially result in unexpected side-effects
256 --> $DIR/arithmetic_side_effects.rs:208:13
258 LL | let _ = Custom - 1.0;
261 error: arithmetic operation that can potentially result in unexpected side-effects
262 --> $DIR/arithmetic_side_effects.rs:209:13
264 LL | let _ = Custom - 2.0;
267 error: arithmetic operation that can potentially result in unexpected side-effects
268 --> $DIR/arithmetic_side_effects.rs:210:13
270 LL | let _ = Custom / 0;
273 error: arithmetic operation that can potentially result in unexpected side-effects
274 --> $DIR/arithmetic_side_effects.rs:211:13
276 LL | let _ = Custom / 1;
279 error: arithmetic operation that can potentially result in unexpected side-effects
280 --> $DIR/arithmetic_side_effects.rs:212:13
282 LL | let _ = Custom / 2;
285 error: arithmetic operation that can potentially result in unexpected side-effects
286 --> $DIR/arithmetic_side_effects.rs:213:13
288 LL | let _ = Custom / 0.0;
291 error: arithmetic operation that can potentially result in unexpected side-effects
292 --> $DIR/arithmetic_side_effects.rs:214:13
294 LL | let _ = Custom / 1.0;
297 error: arithmetic operation that can potentially result in unexpected side-effects
298 --> $DIR/arithmetic_side_effects.rs:215:13
300 LL | let _ = Custom / 2.0;
303 error: arithmetic operation that can potentially result in unexpected side-effects
304 --> $DIR/arithmetic_side_effects.rs:216:13
306 LL | let _ = Custom * 0;
309 error: arithmetic operation that can potentially result in unexpected side-effects
310 --> $DIR/arithmetic_side_effects.rs:217:13
312 LL | let _ = Custom * 1;
315 error: arithmetic operation that can potentially result in unexpected side-effects
316 --> $DIR/arithmetic_side_effects.rs:218:13
318 LL | let _ = Custom * 2;
321 error: arithmetic operation that can potentially result in unexpected side-effects
322 --> $DIR/arithmetic_side_effects.rs:219:13
324 LL | let _ = Custom * 0.0;
327 error: arithmetic operation that can potentially result in unexpected side-effects
328 --> $DIR/arithmetic_side_effects.rs:220:13
330 LL | let _ = Custom * 1.0;
333 error: arithmetic operation that can potentially result in unexpected side-effects
334 --> $DIR/arithmetic_side_effects.rs:221:13
336 LL | let _ = Custom * 2.0;
339 error: arithmetic operation that can potentially result in unexpected side-effects
340 --> $DIR/arithmetic_side_effects.rs:224:10
345 error: arithmetic operation that can potentially result in unexpected side-effects
346 --> $DIR/arithmetic_side_effects.rs:225:10
351 error: aborting due to 58 previous errors