Skip to content

Commit ee73972

Browse files
committed
Changed test output to reflect cargo fmt
1 parent bfa2691 commit ee73972

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/ui/floating_point_abs.stderr

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,10 @@ LL | | }
7171
| |_____^ help: try: `-num.abs()`
7272

7373
error: This looks like you've implemented your own negative absolute value function
74-
--> $DIR/floating_point_abs.rs:65:12
74+
--> $DIR/floating_point_abs.rs:66:12
7575
|
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()`
76+
LL | a: if a.a >= 0.0 { -a.a } else { a.a },
77+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `-a.a.abs()`
8378

8479
error: aborting due to 8 previous errors
8580

0 commit comments

Comments
 (0)