]> git.lizzy.rs Git - rust.git/blob - tests/ui/floating_point_exp.stderr
Split test cases into separate files
[rust.git] / tests / ui / floating_point_exp.stderr
1 error: (e.pow(x) - 1) can be computed more accurately
2   --> $DIR/floating_point_exp.rs:5:13
3    |
4 LL |     let _ = x.exp() - 1.0;
5    |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
6    |
7    = note: `-D clippy::floating-point-improvements` implied by `-D warnings`
8
9 error: (e.pow(x) - 1) can be computed more accurately
10   --> $DIR/floating_point_exp.rs:6:13
11    |
12 LL |     let _ = x.exp() - 1.0 + 2.0;
13    |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
14
15 error: (e.pow(x) - 1) can be computed more accurately
16   --> $DIR/floating_point_exp.rs:12:13
17    |
18 LL |     let _ = x.exp() - 1.0;
19    |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
20
21 error: (e.pow(x) - 1) can be computed more accurately
22   --> $DIR/floating_point_exp.rs:13:13
23    |
24 LL |     let _ = x.exp() - 1.0 + 2.0;
25    |             ^^^^^^^^^^^^^ help: consider using: `x.exp_m1()`
26
27 error: aborting due to 4 previous errors
28