]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/arithmetic_side_effects.stderr
Auto merge of #101969 - reez12g:issue-101306, r=reez12g
[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:119: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:120: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:121:5
17    |
18 LL |     _n /= 0;
19    |     ^^^^^^^
20
21 error: arithmetic operation that can potentially result in unexpected side-effects
22   --> $DIR/arithmetic_side_effects.rs:122:5
23    |
24 LL |     _n %= 0;
25    |     ^^^^^^^
26
27 error: arithmetic operation that can potentially result in unexpected side-effects
28   --> $DIR/arithmetic_side_effects.rs:123:5
29    |
30 LL |     _n *= 2;
31    |     ^^^^^^^
32
33 error: arithmetic operation that can potentially result in unexpected side-effects
34   --> $DIR/arithmetic_side_effects.rs:126:10
35    |
36 LL |     _n = _n + 1;
37    |          ^^^^^^
38
39 error: arithmetic operation that can potentially result in unexpected side-effects
40   --> $DIR/arithmetic_side_effects.rs:127:10
41    |
42 LL |     _n = 1 + _n;
43    |          ^^^^^^
44
45 error: arithmetic operation that can potentially result in unexpected side-effects
46   --> $DIR/arithmetic_side_effects.rs:128:10
47    |
48 LL |     _n = _n - 1;
49    |          ^^^^^^
50
51 error: arithmetic operation that can potentially result in unexpected side-effects
52   --> $DIR/arithmetic_side_effects.rs:129:10
53    |
54 LL |     _n = 1 - _n;
55    |          ^^^^^^
56
57 error: arithmetic operation that can potentially result in unexpected side-effects
58   --> $DIR/arithmetic_side_effects.rs:130:10
59    |
60 LL |     _n = _n / 0;
61    |          ^^^^^^
62
63 error: arithmetic operation that can potentially result in unexpected side-effects
64   --> $DIR/arithmetic_side_effects.rs:131:10
65    |
66 LL |     _n = _n % 0;
67    |          ^^^^^^
68
69 error: arithmetic operation that can potentially result in unexpected side-effects
70   --> $DIR/arithmetic_side_effects.rs:132:10
71    |
72 LL |     _n = _n * 2;
73    |          ^^^^^^
74
75 error: arithmetic operation that can potentially result in unexpected side-effects
76   --> $DIR/arithmetic_side_effects.rs:133:10
77    |
78 LL |     _n = 2 * _n;
79    |          ^^^^^^
80
81 error: arithmetic operation that can potentially result in unexpected side-effects
82   --> $DIR/arithmetic_side_effects.rs:136:10
83    |
84 LL |     _n = -_n;
85    |          ^^^
86
87 error: aborting due to 14 previous errors
88