2020-03-18 14:41:42 +00:00
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:15:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | f * 2.0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::float-arithmetic` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::float_arithmetic)]`
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:19:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | 1.0 + f;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:21:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | f * 2.0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:23:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | f / 2.0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:25:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | f - 2.0 * 4.2;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:27:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | -f;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:30:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | f += 1.0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:32:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | f -= 1.0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:34:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | f *= 2.0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:36:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | f /= 2.0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:43:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | 3.1_f32 + &1.2_f32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:45:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | &3.4_f32 + 1.5_f32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:47:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | &3.5_f32 + &1.3_f32;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:53:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | a + f
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:58:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | f1 + f2
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:63:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | f1 + f2
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: floating-point arithmetic detected
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/float_arithmetic.rs:68:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | (&f1 + &f2)
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 17 previous errors
|
|
|
|
|