1 error: strict comparison of f32 or f64 constant
2 --> $DIR/float_cmp_const.rs:16:5
5 | ^^^^^^^^^^^ help: consider comparing them within some error: `(1f32 - ONE).abs() < error`
7 = note: `-D float-cmp-const` implied by `-D warnings`
8 note: std::f32::EPSILON and std::f64::EPSILON are available.
9 --> $DIR/float_cmp_const.rs:16:5
14 error: strict comparison of f32 or f64 constant
15 --> $DIR/float_cmp_const.rs:17:5
18 | ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() < error`
20 note: std::f32::EPSILON and std::f64::EPSILON are available.
21 --> $DIR/float_cmp_const.rs:17:5
26 error: strict comparison of f32 or f64 constant
27 --> $DIR/float_cmp_const.rs:18:5
30 | ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() < error`
32 note: std::f32::EPSILON and std::f64::EPSILON are available.
33 --> $DIR/float_cmp_const.rs:18:5
38 error: strict comparison of f32 or f64 constant
39 --> $DIR/float_cmp_const.rs:19:5
41 19 | ONE + ONE == TWO;
42 | ^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE + ONE - TWO).abs() < error`
44 note: std::f32::EPSILON and std::f64::EPSILON are available.
45 --> $DIR/float_cmp_const.rs:19:5
47 19 | ONE + ONE == TWO;
50 error: strict comparison of f32 or f64 constant
51 --> $DIR/float_cmp_const.rs:20:5
54 | ^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(1 as f32 - ONE).abs() < error`
56 note: std::f32::EPSILON and std::f64::EPSILON are available.
57 --> $DIR/float_cmp_const.rs:20:5
62 error: strict comparison of f32 or f64 constant
63 --> $DIR/float_cmp_const.rs:23:5
66 | ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() < error`
68 note: std::f32::EPSILON and std::f64::EPSILON are available.
69 --> $DIR/float_cmp_const.rs:23:5
74 error: strict comparison of f32 or f64 constant
75 --> $DIR/float_cmp_const.rs:24:5
78 | ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() < error`
80 note: std::f32::EPSILON and std::f64::EPSILON are available.
81 --> $DIR/float_cmp_const.rs:24:5
86 error: strict comparison of f32 or f64
87 --> $DIR/float_cmp_const.rs:34:5
90 | ^^^^^^ help: consider comparing them within some error: `(v - w).abs() < error`
92 = note: `-D float-cmp` implied by `-D warnings`
93 note: std::f32::EPSILON and std::f64::EPSILON are available.
94 --> $DIR/float_cmp_const.rs:34:5
99 error: strict comparison of f32 or f64
100 --> $DIR/float_cmp_const.rs:35:5
103 | ^^^^^^ help: consider comparing them within some error: `(v - w).abs() < error`
105 note: std::f32::EPSILON and std::f64::EPSILON are available.
106 --> $DIR/float_cmp_const.rs:35:5
111 error: strict comparison of f32 or f64
112 --> $DIR/float_cmp_const.rs:36:5
115 | ^^^^^^^^ help: consider comparing them within some error: `(v - 1.0).abs() < error`
117 note: std::f32::EPSILON and std::f64::EPSILON are available.
118 --> $DIR/float_cmp_const.rs:36:5
123 error: strict comparison of f32 or f64
124 --> $DIR/float_cmp_const.rs:37:5
127 | ^^^^^^^^ help: consider comparing them within some error: `(v - 1.0).abs() < error`
129 note: std::f32::EPSILON and std::f64::EPSILON are available.
130 --> $DIR/float_cmp_const.rs:37:5