1 error: strict comparison of `f32` or `f64` constant
2 --> $DIR/float_cmp_const.rs:20:5
5 | ^^^^^^^^^^^ help: consider comparing them within some margin of error: `(1f32 - ONE).abs() < error_margin`
7 = note: `-D clippy::float-cmp-const` implied by `-D warnings`
8 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
10 error: strict comparison of `f32` or `f64` constant
11 --> $DIR/float_cmp_const.rs:21:5
14 | ^^^^^^^^^^ help: consider comparing them within some margin of error: `(TWO - ONE).abs() < error_margin`
16 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
18 error: strict comparison of `f32` or `f64` constant
19 --> $DIR/float_cmp_const.rs:22:5
22 | ^^^^^^^^^^ help: consider comparing them within some margin of error: `(TWO - ONE).abs() > error_margin`
24 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
26 error: strict comparison of `f32` or `f64` constant
27 --> $DIR/float_cmp_const.rs:23:5
29 LL | ONE + ONE == TWO;
30 | ^^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(ONE + ONE - TWO).abs() < error_margin`
32 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
34 error: strict comparison of `f32` or `f64` constant
35 --> $DIR/float_cmp_const.rs:25:5
38 | ^^^^^^^^^^^^^^^ help: consider comparing them within some margin of error: `(x as f32 - ONE).abs() < error_margin`
40 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
42 error: strict comparison of `f32` or `f64` constant
43 --> $DIR/float_cmp_const.rs:28:5
46 | ^^^^^^^^ help: consider comparing them within some margin of error: `(v - ONE).abs() < error_margin`
48 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
50 error: strict comparison of `f32` or `f64` constant
51 --> $DIR/float_cmp_const.rs:29:5
54 | ^^^^^^^^ help: consider comparing them within some margin of error: `(v - ONE).abs() > error_margin`
56 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
58 error: strict comparison of `f32` or `f64` constant arrays
59 --> $DIR/float_cmp_const.rs:61:5
61 LL | NON_ZERO_ARRAY == NON_ZERO_ARRAY2;
62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error_margin`
66 error: aborting due to 8 previous errors