2 #![warn(clippy::imprecise_flops)]
7 let _ = x.exp() - 1.0 + 2.0;
8 // Cases where the lint shouldn't be applied
10 let _ = x.exp() - 1.0 * 2.0;
13 let _ = x.exp() - 1.0;
14 let _ = x.exp() - 1.0 + 2.0;
15 // Cases where the lint shouldn't be applied
16 let _ = x.exp() - 2.0;
17 let _ = x.exp() - 1.0 * 2.0;