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: lint level defined here
8 --> $DIR/float_cmp.rs:4:9
10 4 | #![deny(float_cmp)]
12 note: std::f32::EPSILON and std::f64::EPSILON are available.
13 --> $DIR/float_cmp.rs:43:5
18 error: strict comparison of f32 or f64
19 --> $DIR/float_cmp.rs:44:5
21 44 | ONE == 1.0 + 0.0;
22 | ^^^^^^^^^^^^^^^^ help: consider comparing them within some error `(ONE - (1.0 + 0.0)).abs() < error`
24 note: std::f32::EPSILON and std::f64::EPSILON are available.
25 --> $DIR/float_cmp.rs:44:5
27 44 | ONE == 1.0 + 0.0;
30 error: strict comparison of f32 or f64
31 --> $DIR/float_cmp.rs:45:5
33 45 | ONE + ONE == ZERO + ONE + ONE;
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error `(ONE + ONE - (ZERO + ONE + ONE)).abs() < error`
36 note: std::f32::EPSILON and std::f64::EPSILON are available.
37 --> $DIR/float_cmp.rs:45:5
39 45 | ONE + ONE == ZERO + ONE + ONE;
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42 error: strict comparison of f32 or f64
43 --> $DIR/float_cmp.rs:46:5
46 | ^^^^^^^^^^ help: consider comparing them within some error `(ONE - 2.0).abs() < error`
48 note: std::f32::EPSILON and std::f64::EPSILON are available.
49 --> $DIR/float_cmp.rs:46:5
54 error: strict comparison of f32 or f64
55 --> $DIR/float_cmp.rs:48:5
57 48 | twice(ONE) != ONE;
58 | ^^^^^^^^^^^^^^^^^ help: consider comparing them within some error `(twice(ONE) - ONE).abs() < error`
60 note: std::f32::EPSILON and std::f64::EPSILON are available.
61 --> $DIR/float_cmp.rs:48:5
63 48 | twice(ONE) != ONE;
66 error: strict comparison of f32 or f64
67 --> $DIR/float_cmp.rs:49:5
69 49 | ONE as f64 != 2.0;
70 | ^^^^^^^^^^^^^^^^^ help: consider comparing them within some error `(ONE as f64 - 2.0).abs() < error`
72 note: std::f32::EPSILON and std::f64::EPSILON are available.
73 --> $DIR/float_cmp.rs:49:5
75 49 | ONE as f64 != 2.0;
78 error: strict comparison of f32 or f64
79 --> $DIR/float_cmp.rs:54:5
82 | ^^^^^^^^ help: consider comparing them within some error `(x - 1.0).abs() < error`
84 note: std::f32::EPSILON and std::f64::EPSILON are available.
85 --> $DIR/float_cmp.rs:54:5
90 error: strict comparison of f32 or f64
91 --> $DIR/float_cmp.rs:57:5
93 57 | twice(x) != twice(ONE as f64);
94 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error `(twice(x) - twice(ONE as f64)).abs() < error`
96 note: std::f32::EPSILON and std::f64::EPSILON are available.
97 --> $DIR/float_cmp.rs:57:5
99 57 | twice(x) != twice(ONE as f64);
100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102 error: aborting due to 8 previous errors