Skip to content

Commit f8b8e21

Browse files
authored
Update output of UI test to capture improved error message. (#35)
1 parent 1c7b6ea commit f8b8e21

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/ui/must_use.stderr

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1-
error: unused return value of `apples` that must be used
1+
error: unused pinned boxed `Future` trait object that must be used
22
--> tests/ui/must_use.rs:9:5
33
|
44
9 | apples(3);
55
| ^^^^^^^^^
66
|
7+
= note: futures do nothing unless you `.await` or poll them
78
note: the lint level is defined here
89
--> tests/ui/must_use.rs:1:9
910
|
1011
1 | #![deny(unused_must_use)]
1112
| ^^^^^^^^^^^^^^^
13+
14+
error: unused return value of `apples` that must be used
15+
--> tests/ui/must_use.rs:9:5
16+
|
17+
9 | apples(3);
18+
| ^^^^^^^^^
19+
|
1220
help: use `let _ = ...` to ignore the resulting value
1321
|
1422
9 | let _ = apples(3);

0 commit comments

Comments
 (0)