summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-96555.stderr
blob: 9a8a183dc2d414e78b1e62b8e249238c677968c5 (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
56
57
58
59
60
61
62
63
64
65
66
error[E0277]: `()` is not a future
  --> $DIR/issue-96555.rs:4:12
   |
LL |     m::f1().await;
   |     -------^^^^^^ `()` is not a future
   |     |
   |     this call returns `()`
   |
   = help: the trait `Future` is not implemented for `()`
   = note: () must be a future or must implement `IntoFuture` to be awaited
   = note: required for `()` to implement `IntoFuture`
help: remove the `.await`
   |
LL -     m::f1().await;
LL +     m::f1();
   |
help: alternatively, consider making `fn f1` asynchronous
   |
LL |     pub async fn f1() {}
   |         +++++

error[E0277]: `()` is not a future
  --> $DIR/issue-96555.rs:5:12
   |
LL |     m::f2().await;
   |     -------^^^^^^ `()` is not a future
   |     |
   |     this call returns `()`
   |
   = help: the trait `Future` is not implemented for `()`
   = note: () must be a future or must implement `IntoFuture` to be awaited
   = note: required for `()` to implement `IntoFuture`
help: remove the `.await`
   |
LL -     m::f2().await;
LL +     m::f2();
   |
help: alternatively, consider making `fn f2` asynchronous
   |
LL |     pub(crate) async fn f2() {}
   |                +++++

error[E0277]: `()` is not a future
  --> $DIR/issue-96555.rs:6:12
   |
LL |     m::f3().await;
   |     -------^^^^^^ `()` is not a future
   |     |
   |     this call returns `()`
   |
   = help: the trait `Future` is not implemented for `()`
   = note: () must be a future or must implement `IntoFuture` to be awaited
   = note: required for `()` to implement `IntoFuture`
help: remove the `.await`
   |
LL -     m::f3().await;
LL +     m::f3();
   |
help: alternatively, consider making `fn f3` asynchronous
   |
LL |     pub async
   |         +++++

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0277`.