3 #![allow(clippy::no_effect, clippy::unnecessary_operation, dead_code)]
4 #![warn(clippy::cast_lossless)]
7 // Test clippy::cast_lossless with casts to floating-point types
26 // The lint would suggest using `f64::from(input)` here but the `XX::from` function is not const,
27 // so we skip the lint if the expression is in a const fn.
29 const fn abc(input: f32) -> f64 {