2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:119:5
|
2022-09-07 13:00:45 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n += 1;
|
|
|
|
| ^^^^^^^
|
2022-09-07 13:00:45 +00:00
|
|
|
|
|
2022-09-08 15:04:55 +00:00
|
|
|
= note: `-D clippy::arithmetic-side-effects` implied by `-D warnings`
|
2022-09-07 13:00:45 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:120:5
|
2022-09-07 13:00:45 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n -= 1;
|
|
|
|
| ^^^^^^^
|
2022-09-07 13:00:45 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:121:5
|
2022-09-07 13:00:45 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n /= 0;
|
|
|
|
| ^^^^^^^
|
2022-09-07 13:00:45 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:122:5
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n %= 0;
|
2022-09-13 18:50:24 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:123:5
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n *= 2;
|
2022-09-13 18:50:24 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:126:10
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n = _n + 1;
|
|
|
|
| ^^^^^^
|
2022-09-13 18:50:24 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:127:10
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n = 1 + _n;
|
|
|
|
| ^^^^^^
|
2022-09-13 18:50:24 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:128:10
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n = _n - 1;
|
|
|
|
| ^^^^^^
|
2022-09-13 18:50:24 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:129:10
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n = 1 - _n;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:130:10
|
2022-09-15 16:28:18 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n / 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:131:10
|
2022-09-15 16:28:18 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n % 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:132:10
|
2022-09-15 16:28:18 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n * 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2022-09-20 15:06:49 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:133:10
|
2022-09-15 16:28:18 +00:00
|
|
|
|
|
|
|
|
LL | _n = 2 * _n;
|
|
|
|
| ^^^^^^
|
2022-09-13 18:50:24 +00:00
|
|
|
|
2022-09-20 15:06:49 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:136:10
|
|
|
|
|
|
|
|
|
LL | _n = -_n;
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: aborting due to 14 previous errors
|
2022-09-07 13:00:45 +00:00
|
|
|
|