1 error: strict comparison of `f32` or `f64` constant
2 --> $DIR/float_cmp_const.rs:20:5
5 | ^^^^^^^^^^^ help: consider comparing them within some error: `(1f32 - ONE).abs() < error`
7 = note: `-D clippy::float-cmp-const` implied by `-D warnings`
8 note: `f32::EPSILON` and `f64::EPSILON` are available.
9 --> $DIR/float_cmp_const.rs:20:5
14 error: strict comparison of `f32` or `f64` constant
15 --> $DIR/float_cmp_const.rs:21:5
18 | ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() < error`
20 note: `f32::EPSILON` and `f64::EPSILON` are available.
21 --> $DIR/float_cmp_const.rs:21:5
26 error: strict comparison of `f32` or `f64` constant
27 --> $DIR/float_cmp_const.rs:22:5
30 | ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() > error`
32 note: `f32::EPSILON` and `f64::EPSILON` are available.
33 --> $DIR/float_cmp_const.rs:22:5
38 error: strict comparison of `f32` or `f64` constant
39 --> $DIR/float_cmp_const.rs:23:5
41 LL | ONE + ONE == TWO;
42 | ^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE + ONE - TWO).abs() < error`
44 note: `f32::EPSILON` and `f64::EPSILON` are available.
45 --> $DIR/float_cmp_const.rs:23:5
47 LL | ONE + ONE == TWO;
50 error: strict comparison of `f32` or `f64` constant
51 --> $DIR/float_cmp_const.rs:25:5
54 | ^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(x as f32 - ONE).abs() < error`
56 note: `f32::EPSILON` and `f64::EPSILON` are available.
57 --> $DIR/float_cmp_const.rs:25:5
62 error: strict comparison of `f32` or `f64` constant
63 --> $DIR/float_cmp_const.rs:28:5
66 | ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() < error`
68 note: `f32::EPSILON` and `f64::EPSILON` are available.
69 --> $DIR/float_cmp_const.rs:28:5
74 error: strict comparison of `f32` or `f64` constant
75 --> $DIR/float_cmp_const.rs:29:5
78 | ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() > error`
80 note: `f32::EPSILON` and `f64::EPSILON` are available.
81 --> $DIR/float_cmp_const.rs:29:5
86 error: aborting due to 7 previous errors