]> git.lizzy.rs Git - rust.git/blob - tests/ui/arithmetic_side_effects.stderr
[arithmetic-side-effects] Finish non-overflowing ops
[rust.git] / tests / ui / arithmetic_side_effects.stderr
1 error: arithmetic operation that can potentially result in unexpected side-effects
2   --> $DIR/arithmetic_side_effects.rs:80: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:81: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:82: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:83: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:84: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:87: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:88: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:89: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:90: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:91: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:92: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:93: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:94:10
77    |
78 LL |     _n = 2 * _n;
79    |          ^^^^^^
80
81 error: aborting due to 13 previous errors
82