1 error: strict comparison of `f32` or `f64`
2 --> $DIR/float_cmp.rs:65:5
4 LL | ONE as f64 != 2.0;
5 | ^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE as f64 - 2.0).abs() > error`
7 = note: `-D clippy::float-cmp` implied by `-D warnings`
8 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error`
10 error: strict comparison of `f32` or `f64`
11 --> $DIR/float_cmp.rs:70:5
14 | ^^^^^^^^ help: consider comparing them within some error: `(x - 1.0).abs() < error`
16 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error`
18 error: strict comparison of `f32` or `f64`
19 --> $DIR/float_cmp.rs:73:5
21 LL | twice(x) != twice(ONE as f64);
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(twice(x) - twice(ONE as f64)).abs() > error`
24 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error`
26 error: strict comparison of `f32` or `f64`
27 --> $DIR/float_cmp.rs:93:5
29 LL | NON_ZERO_ARRAY[i] == NON_ZERO_ARRAY[j];
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(NON_ZERO_ARRAY[i] - NON_ZERO_ARRAY[j]).abs() < error`
32 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error`
34 error: strict comparison of `f32` or `f64` arrays
35 --> $DIR/float_cmp.rs:98:5
40 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error`
42 error: strict comparison of `f32` or `f64`
43 --> $DIR/float_cmp.rs:99:5
46 | ^^^^^^^^^^^^^^ help: consider comparing them within some error: `(a1[0] - a2[0]).abs() < error`
48 = note: `f32::EPSILON` and `f64::EPSILON` are available for the `error`
50 error: aborting due to 6 previous errors