]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/unused-async.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / lint / unused / unused-async.stderr
1 error: unused implementer of `Future` that must be used
2   --> $DIR/unused-async.rs:31:5
3    |
4 LL |     foo();
5    |     ^^^^^
6    |
7    = note: futures do nothing unless you `.await` or poll them
8 note: the lint level is defined here
9   --> $DIR/unused-async.rs:2:9
10    |
11 LL | #![deny(unused_must_use)]
12    |         ^^^^^^^^^^^^^^^
13
14 error: unused return value of `foo` that must be used
15   --> $DIR/unused-async.rs:31:5
16    |
17 LL |     foo();
18    |     ^^^^^
19
20 error: unused output of future returned by `foo` that must be used
21   --> $DIR/unused-async.rs:33:5
22    |
23 LL |     foo().await;
24    |     ^^^^^^^^^^^
25
26 error: unused implementer of `Future` that must be used
27   --> $DIR/unused-async.rs:34:5
28    |
29 LL |     bar();
30    |     ^^^^^
31    |
32    = note: futures do nothing unless you `.await` or poll them
33
34 error: unused return value of `bar` that must be used
35   --> $DIR/unused-async.rs:34:5
36    |
37 LL |     bar();
38    |     ^^^^^
39
40 error: unused output of future returned by `bar` that must be used
41   --> $DIR/unused-async.rs:36:5
42    |
43 LL |     bar().await;
44    |     ^^^^^^^^^^^
45
46 error: unused implementer of `Future` that must be used
47   --> $DIR/unused-async.rs:37:5
48    |
49 LL |     baz();
50    |     ^^^^^
51    |
52    = note: futures do nothing unless you `.await` or poll them
53
54 error: aborting due to 7 previous errors
55