error: integer arithmetic detected
- --> $DIR/arithmetic.rs:22:5
+ --> $DIR/arithmetic.rs:13:5
|
-22 | 1 + i;
+LL | 1 + i;
| ^^^^^
|
= note: `-D clippy::integer-arithmetic` implied by `-D warnings`
error: integer arithmetic detected
- --> $DIR/arithmetic.rs:23:5
+ --> $DIR/arithmetic.rs:14:5
|
-23 | i * 2;
+LL | i * 2;
| ^^^^^
error: integer arithmetic detected
- --> $DIR/arithmetic.rs:24:5
+ --> $DIR/arithmetic.rs:15:5
|
-24 | / 1 %
-25 | | i / 2; // no error, this is part of the expression in the preceding line
+LL | / 1 %
+LL | | i / 2; // no error, this is part of the expression in the preceding line
| |_________^
error: integer arithmetic detected
- --> $DIR/arithmetic.rs:26:5
+ --> $DIR/arithmetic.rs:17:5
|
-26 | i - 2 + 2 - i;
+LL | i - 2 + 2 - i;
| ^^^^^^^^^^^^^
error: integer arithmetic detected
- --> $DIR/arithmetic.rs:27:5
+ --> $DIR/arithmetic.rs:18:5
|
-27 | -i;
+LL | -i;
| ^^
error: floating-point arithmetic detected
- --> $DIR/arithmetic.rs:37:5
+ --> $DIR/arithmetic.rs:32:5
|
-37 | f * 2.0;
+LL | f * 2.0;
| ^^^^^^^
|
= note: `-D clippy::float-arithmetic` implied by `-D warnings`
error: floating-point arithmetic detected
- --> $DIR/arithmetic.rs:39:5
+ --> $DIR/arithmetic.rs:34:5
|
-39 | 1.0 + f;
+LL | 1.0 + f;
| ^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/arithmetic.rs:40:5
+ --> $DIR/arithmetic.rs:35:5
|
-40 | f * 2.0;
+LL | f * 2.0;
| ^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/arithmetic.rs:41:5
+ --> $DIR/arithmetic.rs:36:5
|
-41 | f / 2.0;
+LL | f / 2.0;
| ^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/arithmetic.rs:42:5
+ --> $DIR/arithmetic.rs:37:5
|
-42 | f - 2.0 * 4.2;
+LL | f - 2.0 * 4.2;
| ^^^^^^^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/arithmetic.rs:43:5
+ --> $DIR/arithmetic.rs:38:5
|
-43 | -f;
+LL | -f;
| ^^
error: aborting due to 11 previous errors