Skip to content

Commit

Permalink
Update output of UI test to capture improved error message. (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcchut committed Feb 10, 2024
1 parent 1c7b6ea commit f8b8e21
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/ui/must_use.stderr
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
error: unused return value of `apples` that must be used
error: unused pinned boxed `Future` trait object that must be used
--> tests/ui/must_use.rs:9:5
|
9 | apples(3);
| ^^^^^^^^^
|
= note: futures do nothing unless you `.await` or poll them
note: the lint level is defined here
--> tests/ui/must_use.rs:1:9
|
1 | #![deny(unused_must_use)]
| ^^^^^^^^^^^^^^^

error: unused return value of `apples` that must be used
--> tests/ui/must_use.rs:9:5
|
9 | apples(3);
| ^^^^^^^^^
|
help: use `let _ = ...` to ignore the resulting value
|
9 | let _ = apples(3);
Expand Down

0 comments on commit f8b8e21

Please sign in to comment.