1 error: this type has already been used as a bound predicate
2 --> $DIR/float_cmp.rs:12:5
7 = note: `-D clippy::type-repetition-in-bounds` implied by `-D warnings`
8 = help: consider combining the bounds: `T: Add<T, Output = T>, Copy`
10 error: strict comparison of f32 or f64
11 --> $DIR/float_cmp.rs:60:5
13 LL | ONE as f64 != 2.0;
14 | ^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE as f64 - 2.0).abs() > error`
16 = note: `-D clippy::float-cmp` implied by `-D warnings`
17 note: std::f32::EPSILON and std::f64::EPSILON are available.
18 --> $DIR/float_cmp.rs:60:5
20 LL | ONE as f64 != 2.0;
23 error: strict comparison of f32 or f64
24 --> $DIR/float_cmp.rs:65:5
27 | ^^^^^^^^ help: consider comparing them within some error: `(x - 1.0).abs() < error`
29 note: std::f32::EPSILON and std::f64::EPSILON are available.
30 --> $DIR/float_cmp.rs:65:5
35 error: strict comparison of f32 or f64
36 --> $DIR/float_cmp.rs:68:5
38 LL | twice(x) != twice(ONE as f64);
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(twice(x) - twice(ONE as f64)).abs() > error`
41 note: std::f32::EPSILON and std::f64::EPSILON are available.
42 --> $DIR/float_cmp.rs:68:5
44 LL | twice(x) != twice(ONE as f64);
45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47 error: aborting due to 4 previous errors