2 #![warn(clippy::imprecise_flops)]
7 let _ = (x * x + y * y).sqrt();
8 let _ = ((x + 1f32) * (x + 1f32) + y * y).sqrt();
9 let _ = (x.powi(2) + y.powi(2)).sqrt();
10 // Cases where the lint shouldn't be applied
11 // TODO: linting this adds some complexity, but could be done
12 let _ = x.mul_add(x, y * y).sqrt();
13 let _ = (x * 4f32 + y * y).sqrt();