Skip to content

Commit

Permalink
Use tests instead of $DIR in stderr expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
ithinuel committed May 31, 2024
1 parent 4d20f8c commit 0b8cee3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ui/unused_result_ok.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: ignoring a result with `.ok()` is misleading
--> $DIR/unused_result_ok.rs:9:5
--> tests/ui/unused_result_ok.rs:9:5
|
LL | x.parse::<u32>().ok();
| ^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -12,7 +12,7 @@ LL | let _ = x.parse::<u32>();
| ~~~~~~~~~~~~~~~~~~~~~~~~

error: ignoring a result with `.ok()` is misleading
--> $DIR/unused_result_ok.rs:18:5
--> tests/ui/unused_result_ok.rs:18:5
|
LL | x . parse::<i32>() . ok ();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -23,7 +23,7 @@ LL | let _ = x . parse::<i32>();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: ignoring a result with `.ok()` is misleading
--> $DIR/unused_result_ok.rs:34:5
--> tests/ui/unused_result_ok.rs:34:5
|
LL | v!().ok();
| ^^^^^^^^^
Expand All @@ -34,7 +34,7 @@ LL | let _ = v!();
| ~~~~~~~~~~~~

error: ignoring a result with `.ok()` is misleading
--> $DIR/unused_result_ok.rs:29:9
--> tests/ui/unused_result_ok.rs:29:9
|
LL | Ok::<(), ()>(()).ok();
| ^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 0b8cee3

Please sign in to comment.