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