2022-09-07 13:00:45 +00:00
|
|
|
error: arithmetic detected
|
2022-09-13 18:50:24 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:58:21
|
2022-09-07 13:00:45 +00:00
|
|
|
|
|
|
|
|
LL | let mut _a = 1; _a += 1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
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
|
|
|
|
|
|
|
error: arithmetic detected
|
2022-09-13 18:50:24 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:60:26
|
2022-09-07 13:00:45 +00:00
|
|
|
|
|
|
|
|
LL | let mut _b = 1; _b = _b + 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic detected
|
2022-09-13 18:50:24 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:62:26
|
2022-09-07 13:00:45 +00:00
|
|
|
|
|
|
|
|
LL | let mut _c = 1; _c = 1 + _c;
|
|
|
|
| ^^^^^^
|
|
|
|
|
2022-09-13 18:50:24 +00:00
|
|
|
error: arithmetic detected
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:65:5
|
|
|
|
|
|
|
|
|
LL | _a += 1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic detected
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:66:5
|
|
|
|
|
|
|
|
|
LL | _a -= 1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic detected
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:67:5
|
|
|
|
|
|
|
|
|
LL | _a /= 0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic detected
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:68:5
|
|
|
|
|
|
|
|
|
LL | _a %= 0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic detected
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:69:5
|
|
|
|
|
|
|
|
|
LL | _a *= 2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic detected
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:70:5
|
|
|
|
|
|
|
|
|
LL | _a *= 3;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2022-09-07 13:00:45 +00:00
|
|
|
|