1 error: strict comparison of f32 or f64
5 | ^^^^^^^^^^^ help: consider comparing them within some error `(ONE - 1f32).abs() < error`
7 = note: `-D float-cmp` implied by `-D warnings`
8 note: std::f32::EPSILON and std::f64::EPSILON are available.
14 error: strict comparison of f32 or f64
17 44 | ONE == 1.0 + 0.0;
18 | ^^^^^^^^^^^^^^^^ help: consider comparing them within some error `(ONE - (1.0 + 0.0)).abs() < error`
20 = note: `-D float-cmp` implied by `-D warnings`
21 note: std::f32::EPSILON and std::f64::EPSILON are available.
24 44 | ONE == 1.0 + 0.0;
27 error: strict comparison of f32 or f64
30 45 | ONE + ONE == ZERO + ONE + ONE;
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error `(ONE + ONE - (ZERO + ONE + ONE)).abs() < error`
33 = note: `-D float-cmp` implied by `-D warnings`
34 note: std::f32::EPSILON and std::f64::EPSILON are available.
37 45 | ONE + ONE == ZERO + ONE + ONE;
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 error: strict comparison of f32 or f64
44 | ^^^^^^^^^^ help: consider comparing them within some error `(ONE - 2.0).abs() < error`
46 = note: `-D float-cmp` implied by `-D warnings`
47 note: std::f32::EPSILON and std::f64::EPSILON are available.
53 error: strict comparison of f32 or f64
56 48 | twice(ONE) != ONE;
57 | ^^^^^^^^^^^^^^^^^ help: consider comparing them within some error `(twice(ONE) - ONE).abs() < error`
59 = note: `-D float-cmp` implied by `-D warnings`
60 note: std::f32::EPSILON and std::f64::EPSILON are available.
63 48 | twice(ONE) != ONE;
66 error: strict comparison of f32 or f64
69 49 | ONE as f64 != 2.0;
70 | ^^^^^^^^^^^^^^^^^ help: consider comparing them within some error `(ONE as f64 - 2.0).abs() < error`
72 = note: `-D float-cmp` implied by `-D warnings`
73 note: std::f32::EPSILON and std::f64::EPSILON are available.
76 49 | ONE as f64 != 2.0;
79 error: strict comparison of f32 or f64
83 | ^^^^^^^^ help: consider comparing them within some error `(x - 1.0).abs() < error`
85 = note: `-D float-cmp` implied by `-D warnings`
86 note: std::f32::EPSILON and std::f64::EPSILON are available.
92 error: strict comparison of f32 or f64
95 57 | twice(x) != twice(ONE as f64);
96 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error `(twice(x) - twice(ONE as f64)).abs() < error`
98 = note: `-D float-cmp` implied by `-D warnings`
99 note: std::f32::EPSILON and std::f64::EPSILON are available.
100 --> float_cmp.rs:57:5
102 57 | twice(x) != twice(ONE as f64);
103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105 error: aborting due to previous error(s)
107 error: Could not compile `clippy_tests`.
109 To learn more, run the command again with --verbose.