We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfa2691 commit ee73972Copy full SHA for ee73972
tests/ui/floating_point_abs.stderr
@@ -71,15 +71,10 @@ LL | | }
71
| |_____^ help: try: `-num.abs()`
72
73
error: This looks like you've implemented your own negative absolute value function
74
- --> $DIR/floating_point_abs.rs:65:12
+ --> $DIR/floating_point_abs.rs:66:12
75
|
76
-LL | A { a: if a.a >= 0.0 {
77
- | ____________^
78
-LL | | -a.a
79
-LL | | } else {
80
-LL | | a.a
81
-LL | | }, b: a.b }
82
- | |_________^ help: try: `-a.a.abs()`
+LL | a: if a.a >= 0.0 { -a.a } else { a.a },
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `-a.a.abs()`
83
84
error: aborting due to 8 previous errors
85
0 commit comments