1 error: strict comparison of f32 or f64
2 --> $DIR/float_cmp.rs:43:5
5 | ^^^^^^^^^^^ help: consider comparing them within some error: `(ONE - 1f32).abs() < error`
7 = note: `-D float-cmp` implied by `-D warnings`
8 note: std::f32::EPSILON and std::f64::EPSILON are available.
9 --> $DIR/float_cmp.rs:43:5
14 error: strict comparison of f32 or f64
15 --> $DIR/float_cmp.rs:44:5
17 44 | ONE == 1.0 + 0.0;
18 | ^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE - (1.0 + 0.0)).abs() < error`
20 note: std::f32::EPSILON and std::f64::EPSILON are available.
21 --> $DIR/float_cmp.rs:44:5
23 44 | ONE == 1.0 + 0.0;
26 error: strict comparison of f32 or f64
27 --> $DIR/float_cmp.rs:45:5
29 45 | ONE + ONE == ZERO + ONE + ONE;
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE + ONE - (ZERO + ONE + ONE)).abs() < error`
32 note: std::f32::EPSILON and std::f64::EPSILON are available.
33 --> $DIR/float_cmp.rs:45:5
35 45 | ONE + ONE == ZERO + ONE + ONE;
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 error: strict comparison of f32 or f64
39 --> $DIR/float_cmp.rs:46:5
42 | ^^^^^^^^^^ help: consider comparing them within some error: `(ONE - 2.0).abs() < error`
44 note: std::f32::EPSILON and std::f64::EPSILON are available.
45 --> $DIR/float_cmp.rs:46:5
50 error: strict comparison of f32 or f64
51 --> $DIR/float_cmp.rs:48:5
53 48 | twice(ONE) != ONE;
54 | ^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(twice(ONE) - ONE).abs() < error`
56 note: std::f32::EPSILON and std::f64::EPSILON are available.
57 --> $DIR/float_cmp.rs:48:5
59 48 | twice(ONE) != ONE;
62 error: strict comparison of f32 or f64
63 --> $DIR/float_cmp.rs:49:5
65 49 | ONE as f64 != 2.0;
66 | ^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE as f64 - 2.0).abs() < error`
68 note: std::f32::EPSILON and std::f64::EPSILON are available.
69 --> $DIR/float_cmp.rs:49:5
71 49 | ONE as f64 != 2.0;
74 error: strict comparison of f32 or f64
75 --> $DIR/float_cmp.rs:54:5
78 | ^^^^^^^^ help: consider comparing them within some error: `(x - 1.0).abs() < error`
80 note: std::f32::EPSILON and std::f64::EPSILON are available.
81 --> $DIR/float_cmp.rs:54:5
86 error: strict comparison of f32 or f64
87 --> $DIR/float_cmp.rs:57:5
89 57 | twice(x) != twice(ONE as f64);
90 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(twice(x) - twice(ONE as f64)).abs() < error`
92 note: std::f32::EPSILON and std::f64::EPSILON are available.
93 --> $DIR/float_cmp.rs:57:5
95 57 | twice(x) != twice(ONE as f64);
96 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^