rust/tests/ui/floating_point_abs.stderr
2020-02-28 12:40:13 -08:00

15 lines
363 B
Plaintext

error: This looks like you've implemented your own absolute value function
--> $DIR/floating_point_abs.rs:4:5
|
LL | / if num >= 0.0 {
LL | | num
LL | | } else {
LL | | -num
LL | | }
| |_____^ help: try: `num.abs()`
|
= note: `-D clippy::suboptimal-flops` implied by `-D warnings`
error: aborting due to previous error