1 error: strict comparison of f32 or f64
2 --> $DIR/float_cmp.rs:49:5
4 49 | ONE as f64 != 2.0;
5 | ^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE as f64 - 2.0).abs() < error`
7 = note: `-D float-cmp` implied by `-D warnings`
8 note: std::f32::EPSILON and std::f64::EPSILON are available.
9 --> $DIR/float_cmp.rs:49:5
11 49 | ONE as f64 != 2.0;
14 error: strict comparison of f32 or f64
15 --> $DIR/float_cmp.rs:54: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:54:5
26 error: strict comparison of f32 or f64
27 --> $DIR/float_cmp.rs:57:5
29 57 | 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:57:5
35 57 | twice(x) != twice(ONE as f64);
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 error: aborting due to 3 previous errors