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 1c7b6ea commit f8b8e21Copy full SHA for f8b8e21
tests/ui/must_use.stderr
@@ -1,14 +1,22 @@
1
-error: unused return value of `apples` that must be used
+error: unused pinned boxed `Future` trait object that must be used
2
--> tests/ui/must_use.rs:9:5
3
|
4
9 | apples(3);
5
| ^^^^^^^^^
6
7
+ = note: futures do nothing unless you `.await` or poll them
8
note: the lint level is defined here
9
--> tests/ui/must_use.rs:1:9
10
11
1 | #![deny(unused_must_use)]
12
| ^^^^^^^^^^^^^^^
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
20
help: use `let _ = ...` to ignore the resulting value
21
22
9 | let _ = apples(3);
0 commit comments