1 // does not test any rustfixable lints
3 #![warn(clippy::float_cmp_const)]
4 #![allow(clippy::float_cmp)]
5 #![allow(unused, clippy::no_effect, clippy::unnecessary_operation)]
10 fn eq_one(x: f32) -> bool {
15 } // no error, inside "eq" fn
31 // no errors, lower than or greater than comparisons
37 // no errors, zero and infinity values
40 ONE != ::std::f32::INFINITY;
41 ONE == ::std::f32::NEG_INFINITY;
43 // no errors, but will warn clippy::float_cmp if '#![allow(float_cmp)]' above is removed