We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f04108 commit b4a3886Copy full SHA for b4a3886
tests/ui/must-use.stderr
@@ -1,14 +1,22 @@
1
-error: unused return value of `Interface::f` that must be used
+error: unused pinned boxed `Future` trait object that must be used
2
--> tests/ui/must-use.rs:18:5
3
|
4
18 | Thing.f();
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 `Interface::f` that must be used
15
+ --> tests/ui/must-use.rs:18:5
16
+ |
17
+18 | Thing.f();
18
+ | ^^^^^^^^^
19
20
help: use `let _ = ...` to ignore the resulting value
21
22
18 | let _ = Thing.f();
0 commit comments