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