2017-05-17 12:19:44 +00:00
|
|
|
error: integer arithmetic detected
|
2017-05-17 15:51:35 +00:00
|
|
|
--> arithmetic.rs:8:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
8 | 1 + i;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D integer-arithmetic` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2017-05-17 15:51:35 +00:00
|
|
|
--> arithmetic.rs:9:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
9 | i * 2;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D integer-arithmetic` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2017-05-17 15:51:35 +00:00
|
|
|
--> arithmetic.rs:10:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
10 | / 1 %
|
|
|
|
11 | | i / 2; // no error, this is part of the expression in the preceding line
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
|
= note: `-D integer-arithmetic` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2017-05-17 15:51:35 +00:00
|
|
|
--> arithmetic.rs:12:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
12 | i - 2 + 2 - i;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D integer-arithmetic` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2017-05-17 15:51:35 +00:00
|
|
|
--> arithmetic.rs:13:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
13 | -i;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
= note: `-D integer-arithmetic` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2017-05-17 15:51:35 +00:00
|
|
|
--> arithmetic.rs:23:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
23 | f * 2.0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D float-arithmetic` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2017-05-17 15:51:35 +00:00
|
|
|
--> arithmetic.rs:25:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
25 | 1.0 + f;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D float-arithmetic` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2017-05-17 15:51:35 +00:00
|
|
|
--> arithmetic.rs:26:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
26 | f * 2.0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D float-arithmetic` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2017-05-17 15:51:35 +00:00
|
|
|
--> arithmetic.rs:27:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
27 | f / 2.0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D float-arithmetic` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2017-05-17 15:51:35 +00:00
|
|
|
--> arithmetic.rs:28:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
28 | f - 2.0 * 4.2;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D float-arithmetic` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2017-05-17 15:51:35 +00:00
|
|
|
--> arithmetic.rs:29:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
29 | -f;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
= note: `-D float-arithmetic` implied by `-D warnings`
|
|
|
|
|
2017-05-26 07:21:54 +00:00
|
|
|
error: aborting due to previous error(s)
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|