1 error: strict comparison of `f32` or `f64`
2 --> $DIR/float_cmp.rs:59: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: `std::f32::EPSILON` and `std::f64::EPSILON` are available.
9 --> $DIR/float_cmp.rs:59:5
11 LL | ONE as f64 != 2.0;
14 error: strict comparison of `f32` or `f64`
15 --> $DIR/float_cmp.rs:64:5
18 | ^^^^^^^^ help: consider comparing them within some error: `(x - 1.0).abs() < error`
20 note: `std::f32::EPSILON` and `std::f64::EPSILON` are available.
21 --> $DIR/float_cmp.rs:64:5
26 error: strict comparison of `f32` or `f64`
27 --> $DIR/float_cmp.rs:67:5
29 LL | twice(x) != twice(ONE as f64);
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(twice(x) - twice(ONE as f64)).abs() > error`
32 note: `std::f32::EPSILON` and `std::f64::EPSILON` are available.
33 --> $DIR/float_cmp.rs:67:5
35 LL | twice(x) != twice(ONE as f64);
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 error: aborting due to 3 previous errors