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