1 error: (e.pow(x) - 1) can be computed more accurately
2 --> $DIR/floating_point_exp.rs:6:13
4 LL | let _ = x.exp() - 1.0;
5 | ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
7 = note: `-D clippy::imprecise-flops` implied by `-D warnings`
9 error: (e.pow(x) - 1) can be computed more accurately
10 --> $DIR/floating_point_exp.rs:7:13
12 LL | let _ = x.exp() - 1.0 + 2.0;
13 | ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
15 error: (e.pow(x) - 1) can be computed more accurately
16 --> $DIR/floating_point_exp.rs:8:13
18 LL | let _ = (x as f32).exp() - 1.0 + 2.0;
19 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x as f32).exp_m1()`
21 error: (e.pow(x) - 1) can be computed more accurately
22 --> $DIR/floating_point_exp.rs:14:13
24 LL | let _ = x.exp() - 1.0;
25 | ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
27 error: (e.pow(x) - 1) can be computed more accurately
28 --> $DIR/floating_point_exp.rs:15:13
30 LL | let _ = x.exp() - 1.0 + 2.0;
31 | ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
33 error: aborting due to 5 previous errors