]> git.lizzy.rs Git - rust.git/blob - tests/ui/floating_point_abs.stderr
Some bugfixing
[rust.git] / tests / ui / floating_point_abs.stderr
1 error: This looks like you've implemented your own absolute value function
2   --> $DIR/floating_point_abs.rs:4:5
3    |
4 LL | /     if num >= 0.0 {
5 LL | |         num
6 LL | |     } else {
7 LL | |         -num
8 LL | |     }
9    | |_____^ help: try: `num.abs()`
10    |
11    = note: `-D clippy::suboptimal-flops` implied by `-D warnings`
12
13 error: aborting due to previous error
14