summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/unused/unused-async.stderr
blob: 4bcb26dc16586a38f3898fa8df4032af493b0271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
error: unused implementer of `Future` that must be used
  --> $DIR/unused-async.rs:31:5
   |
LL |     foo();
   |     ^^^^^
   |
   = note: futures do nothing unless you `.await` or poll them
note: the lint level is defined here
  --> $DIR/unused-async.rs:2:9
   |
LL | #![deny(unused_must_use)]
   |         ^^^^^^^^^^^^^^^

error: unused return value of `foo` that must be used
  --> $DIR/unused-async.rs:31:5
   |
LL |     foo();
   |     ^^^^^

error: unused output of future returned by `foo` that must be used
  --> $DIR/unused-async.rs:33:5
   |
LL |     foo().await;
   |     ^^^^^^^^^^^

error: unused implementer of `Future` that must be used
  --> $DIR/unused-async.rs:34:5
   |
LL |     bar();
   |     ^^^^^
   |
   = note: futures do nothing unless you `.await` or poll them

error: unused return value of `bar` that must be used
  --> $DIR/unused-async.rs:34:5
   |
LL |     bar();
   |     ^^^^^

error: unused output of future returned by `bar` that must be used
  --> $DIR/unused-async.rs:36:5
   |
LL |     bar().await;
   |     ^^^^^^^^^^^

error: unused implementer of `Future` that must be used
  --> $DIR/unused-async.rs:37:5
   |
LL |     baz();
   |     ^^^^^
   |
   = note: futures do nothing unless you `.await` or poll them

error: aborting due to 7 previous errors