2017-05-17 14:19:44 +02:00
|
|
|
error: integer arithmetic detected
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/arithmetic.rs:18:5
|
|
|
|
|
|
|
|
|
18 | 1 + i;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::integer-arithmetic` implied by `-D warnings`
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/arithmetic.rs:19:5
|
|
|
|
|
|
|
|
|
19 | i * 2;
|
|
|
|
| ^^^^^
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/arithmetic.rs:20:5
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
20 | / 1 %
|
|
|
|
21 | | i / 2; // no error, this is part of the expression in the preceding line
|
2017-05-17 14:19:44 +02:00
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/arithmetic.rs:22:5
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
22 | i - 2 + 2 - i;
|
2017-05-17 14:19:44 +02:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/arithmetic.rs:23:5
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
23 | -i;
|
2017-05-17 14:19:44 +02:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/arithmetic.rs:33:5
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
33 | f * 2.0;
|
2017-05-17 14:19:44 +02:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::float-arithmetic` implied by `-D warnings`
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/arithmetic.rs:35:5
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
35 | 1.0 + f;
|
2017-05-17 14:19:44 +02:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/arithmetic.rs:36:5
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
36 | f * 2.0;
|
2017-05-17 14:19:44 +02:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/arithmetic.rs:37:5
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
37 | f / 2.0;
|
2017-05-17 14:19:44 +02:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/arithmetic.rs:38:5
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
38 | f - 2.0 * 4.2;
|
2017-05-17 14:19:44 +02:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/arithmetic.rs:39:5
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
39 | -f;
|
2017-05-17 14:19:44 +02:00
|
|
|
| ^^
|
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 11 previous errors
|
|
|
|
|