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