]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/arithmetic_side_effects.stderr
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
[rust.git] / src / tools / clippy / tests / ui / arithmetic_side_effects.stderr
1 error: arithmetic operation that can potentially result in unexpected side-effects
2   --> $DIR/arithmetic_side_effects.rs:78:13
3    |
4 LL |     let _ = String::new() + "";
5    |             ^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::arithmetic-side-effects` implied by `-D warnings`
8
9 error: arithmetic operation that can potentially result in unexpected side-effects
10   --> $DIR/arithmetic_side_effects.rs:86:27
11    |
12 LL |     let inferred_string = string + "";
13    |                           ^^^^^^^^^^^
14
15 error: arithmetic operation that can potentially result in unexpected side-effects
16   --> $DIR/arithmetic_side_effects.rs:90:13
17    |
18 LL |     let _ = inferred_string + "";
19    |             ^^^^^^^^^^^^^^^^^^^^
20
21 error: arithmetic operation that can potentially result in unexpected side-effects
22   --> $DIR/arithmetic_side_effects.rs:161:5
23    |
24 LL |     _n += 1;
25    |     ^^^^^^^
26
27 error: arithmetic operation that can potentially result in unexpected side-effects
28   --> $DIR/arithmetic_side_effects.rs:162:5
29    |
30 LL |     _n += &1;
31    |     ^^^^^^^^
32
33 error: arithmetic operation that can potentially result in unexpected side-effects
34   --> $DIR/arithmetic_side_effects.rs:163:5
35    |
36 LL |     _n -= 1;
37    |     ^^^^^^^
38
39 error: arithmetic operation that can potentially result in unexpected side-effects
40   --> $DIR/arithmetic_side_effects.rs:164:5
41    |
42 LL |     _n -= &1;
43    |     ^^^^^^^^
44
45 error: arithmetic operation that can potentially result in unexpected side-effects
46   --> $DIR/arithmetic_side_effects.rs:165:5
47    |
48 LL |     _n /= 0;
49    |     ^^^^^^^
50
51 error: arithmetic operation that can potentially result in unexpected side-effects
52   --> $DIR/arithmetic_side_effects.rs:166:5
53    |
54 LL |     _n /= &0;
55    |     ^^^^^^^^
56
57 error: arithmetic operation that can potentially result in unexpected side-effects
58   --> $DIR/arithmetic_side_effects.rs:167:5
59    |
60 LL |     _n %= 0;
61    |     ^^^^^^^
62
63 error: arithmetic operation that can potentially result in unexpected side-effects
64   --> $DIR/arithmetic_side_effects.rs:168:5
65    |
66 LL |     _n %= &0;
67    |     ^^^^^^^^
68
69 error: arithmetic operation that can potentially result in unexpected side-effects
70   --> $DIR/arithmetic_side_effects.rs:169:5
71    |
72 LL |     _n *= 2;
73    |     ^^^^^^^
74
75 error: arithmetic operation that can potentially result in unexpected side-effects
76   --> $DIR/arithmetic_side_effects.rs:170:5
77    |
78 LL |     _n *= &2;
79    |     ^^^^^^^^
80
81 error: arithmetic operation that can potentially result in unexpected side-effects
82   --> $DIR/arithmetic_side_effects.rs:173:10
83    |
84 LL |     _n = _n + 1;
85    |          ^^^^^^
86
87 error: arithmetic operation that can potentially result in unexpected side-effects
88   --> $DIR/arithmetic_side_effects.rs:174:10
89    |
90 LL |     _n = _n + &1;
91    |          ^^^^^^^
92
93 error: arithmetic operation that can potentially result in unexpected side-effects
94   --> $DIR/arithmetic_side_effects.rs:175:10
95    |
96 LL |     _n = 1 + _n;
97    |          ^^^^^^
98
99 error: arithmetic operation that can potentially result in unexpected side-effects
100   --> $DIR/arithmetic_side_effects.rs:176:10
101    |
102 LL |     _n = &1 + _n;
103    |          ^^^^^^^
104
105 error: arithmetic operation that can potentially result in unexpected side-effects
106   --> $DIR/arithmetic_side_effects.rs:177:10
107    |
108 LL |     _n = _n - 1;
109    |          ^^^^^^
110
111 error: arithmetic operation that can potentially result in unexpected side-effects
112   --> $DIR/arithmetic_side_effects.rs:178:10
113    |
114 LL |     _n = _n - &1;
115    |          ^^^^^^^
116
117 error: arithmetic operation that can potentially result in unexpected side-effects
118   --> $DIR/arithmetic_side_effects.rs:179:10
119    |
120 LL |     _n = 1 - _n;
121    |          ^^^^^^
122
123 error: arithmetic operation that can potentially result in unexpected side-effects
124   --> $DIR/arithmetic_side_effects.rs:180:10
125    |
126 LL |     _n = &1 - _n;
127    |          ^^^^^^^
128
129 error: arithmetic operation that can potentially result in unexpected side-effects
130   --> $DIR/arithmetic_side_effects.rs:181:10
131    |
132 LL |     _n = _n / 0;
133    |          ^^^^^^
134
135 error: arithmetic operation that can potentially result in unexpected side-effects
136   --> $DIR/arithmetic_side_effects.rs:182:10
137    |
138 LL |     _n = _n / &0;
139    |          ^^^^^^^
140
141 error: arithmetic operation that can potentially result in unexpected side-effects
142   --> $DIR/arithmetic_side_effects.rs:183:10
143    |
144 LL |     _n = _n % 0;
145    |          ^^^^^^
146
147 error: arithmetic operation that can potentially result in unexpected side-effects
148   --> $DIR/arithmetic_side_effects.rs:184:10
149    |
150 LL |     _n = _n % &0;
151    |          ^^^^^^^
152
153 error: arithmetic operation that can potentially result in unexpected side-effects
154   --> $DIR/arithmetic_side_effects.rs:185:10
155    |
156 LL |     _n = _n * 2;
157    |          ^^^^^^
158
159 error: arithmetic operation that can potentially result in unexpected side-effects
160   --> $DIR/arithmetic_side_effects.rs:186:10
161    |
162 LL |     _n = _n * &2;
163    |          ^^^^^^^
164
165 error: arithmetic operation that can potentially result in unexpected side-effects
166   --> $DIR/arithmetic_side_effects.rs:187:10
167    |
168 LL |     _n = 2 * _n;
169    |          ^^^^^^
170
171 error: arithmetic operation that can potentially result in unexpected side-effects
172   --> $DIR/arithmetic_side_effects.rs:188:10
173    |
174 LL |     _n = &2 * _n;
175    |          ^^^^^^^
176
177 error: arithmetic operation that can potentially result in unexpected side-effects
178   --> $DIR/arithmetic_side_effects.rs:189:10
179    |
180 LL |     _n = 23 + &85;
181    |          ^^^^^^^^
182
183 error: arithmetic operation that can potentially result in unexpected side-effects
184   --> $DIR/arithmetic_side_effects.rs:190:10
185    |
186 LL |     _n = &23 + 85;
187    |          ^^^^^^^^
188
189 error: arithmetic operation that can potentially result in unexpected side-effects
190   --> $DIR/arithmetic_side_effects.rs:191:10
191    |
192 LL |     _n = &23 + &85;
193    |          ^^^^^^^^^
194
195 error: arithmetic operation that can potentially result in unexpected side-effects
196   --> $DIR/arithmetic_side_effects.rs:194:13
197    |
198 LL |     let _ = Custom + 0;
199    |             ^^^^^^^^^^
200
201 error: arithmetic operation that can potentially result in unexpected side-effects
202   --> $DIR/arithmetic_side_effects.rs:195:13
203    |
204 LL |     let _ = Custom + 1;
205    |             ^^^^^^^^^^
206
207 error: arithmetic operation that can potentially result in unexpected side-effects
208   --> $DIR/arithmetic_side_effects.rs:196:13
209    |
210 LL |     let _ = Custom + 2;
211    |             ^^^^^^^^^^
212
213 error: arithmetic operation that can potentially result in unexpected side-effects
214   --> $DIR/arithmetic_side_effects.rs:197:13
215    |
216 LL |     let _ = Custom + 0.0;
217    |             ^^^^^^^^^^^^
218
219 error: arithmetic operation that can potentially result in unexpected side-effects
220   --> $DIR/arithmetic_side_effects.rs:198:13
221    |
222 LL |     let _ = Custom + 1.0;
223    |             ^^^^^^^^^^^^
224
225 error: arithmetic operation that can potentially result in unexpected side-effects
226   --> $DIR/arithmetic_side_effects.rs:199:13
227    |
228 LL |     let _ = Custom + 2.0;
229    |             ^^^^^^^^^^^^
230
231 error: arithmetic operation that can potentially result in unexpected side-effects
232   --> $DIR/arithmetic_side_effects.rs:200:13
233    |
234 LL |     let _ = Custom - 0;
235    |             ^^^^^^^^^^
236
237 error: arithmetic operation that can potentially result in unexpected side-effects
238   --> $DIR/arithmetic_side_effects.rs:201:13
239    |
240 LL |     let _ = Custom - 1;
241    |             ^^^^^^^^^^
242
243 error: arithmetic operation that can potentially result in unexpected side-effects
244   --> $DIR/arithmetic_side_effects.rs:202:13
245    |
246 LL |     let _ = Custom - 2;
247    |             ^^^^^^^^^^
248
249 error: arithmetic operation that can potentially result in unexpected side-effects
250   --> $DIR/arithmetic_side_effects.rs:203:13
251    |
252 LL |     let _ = Custom - 0.0;
253    |             ^^^^^^^^^^^^
254
255 error: arithmetic operation that can potentially result in unexpected side-effects
256   --> $DIR/arithmetic_side_effects.rs:204:13
257    |
258 LL |     let _ = Custom - 1.0;
259    |             ^^^^^^^^^^^^
260
261 error: arithmetic operation that can potentially result in unexpected side-effects
262   --> $DIR/arithmetic_side_effects.rs:205:13
263    |
264 LL |     let _ = Custom - 2.0;
265    |             ^^^^^^^^^^^^
266
267 error: arithmetic operation that can potentially result in unexpected side-effects
268   --> $DIR/arithmetic_side_effects.rs:206:13
269    |
270 LL |     let _ = Custom / 0;
271    |             ^^^^^^^^^^
272
273 error: arithmetic operation that can potentially result in unexpected side-effects
274   --> $DIR/arithmetic_side_effects.rs:207:13
275    |
276 LL |     let _ = Custom / 1;
277    |             ^^^^^^^^^^
278
279 error: arithmetic operation that can potentially result in unexpected side-effects
280   --> $DIR/arithmetic_side_effects.rs:208:13
281    |
282 LL |     let _ = Custom / 2;
283    |             ^^^^^^^^^^
284
285 error: arithmetic operation that can potentially result in unexpected side-effects
286   --> $DIR/arithmetic_side_effects.rs:209:13
287    |
288 LL |     let _ = Custom / 0.0;
289    |             ^^^^^^^^^^^^
290
291 error: arithmetic operation that can potentially result in unexpected side-effects
292   --> $DIR/arithmetic_side_effects.rs:210:13
293    |
294 LL |     let _ = Custom / 1.0;
295    |             ^^^^^^^^^^^^
296
297 error: arithmetic operation that can potentially result in unexpected side-effects
298   --> $DIR/arithmetic_side_effects.rs:211:13
299    |
300 LL |     let _ = Custom / 2.0;
301    |             ^^^^^^^^^^^^
302
303 error: arithmetic operation that can potentially result in unexpected side-effects
304   --> $DIR/arithmetic_side_effects.rs:212:13
305    |
306 LL |     let _ = Custom * 0;
307    |             ^^^^^^^^^^
308
309 error: arithmetic operation that can potentially result in unexpected side-effects
310   --> $DIR/arithmetic_side_effects.rs:213:13
311    |
312 LL |     let _ = Custom * 1;
313    |             ^^^^^^^^^^
314
315 error: arithmetic operation that can potentially result in unexpected side-effects
316   --> $DIR/arithmetic_side_effects.rs:214:13
317    |
318 LL |     let _ = Custom * 2;
319    |             ^^^^^^^^^^
320
321 error: arithmetic operation that can potentially result in unexpected side-effects
322   --> $DIR/arithmetic_side_effects.rs:215:13
323    |
324 LL |     let _ = Custom * 0.0;
325    |             ^^^^^^^^^^^^
326
327 error: arithmetic operation that can potentially result in unexpected side-effects
328   --> $DIR/arithmetic_side_effects.rs:216:13
329    |
330 LL |     let _ = Custom * 1.0;
331    |             ^^^^^^^^^^^^
332
333 error: arithmetic operation that can potentially result in unexpected side-effects
334   --> $DIR/arithmetic_side_effects.rs:217:13
335    |
336 LL |     let _ = Custom * 2.0;
337    |             ^^^^^^^^^^^^
338
339 error: arithmetic operation that can potentially result in unexpected side-effects
340   --> $DIR/arithmetic_side_effects.rs:220:10
341    |
342 LL |     _n = -_n;
343    |          ^^^
344
345 error: arithmetic operation that can potentially result in unexpected side-effects
346   --> $DIR/arithmetic_side_effects.rs:221:10
347    |
348 LL |     _n = -&_n;
349    |          ^^^^
350
351 error: aborting due to 58 previous errors
352