1 error[E0277]: `()` is not a future
2 --> $DIR/issue-96555.rs:4:12
5 | -------^^^^^^ `()` is not a future
7 | this call returns `()`
9 = help: the trait `Future` is not implemented for `()`
10 = note: () must be a future or must implement `IntoFuture` to be awaited
11 = note: required for `()` to implement `IntoFuture`
12 help: remove the `.await`
17 help: alternatively, consider making `fn f1` asynchronous
19 LL | pub async fn f1() {}
22 error[E0277]: `()` is not a future
23 --> $DIR/issue-96555.rs:5:12
26 | -------^^^^^^ `()` is not a future
28 | this call returns `()`
30 = help: the trait `Future` is not implemented for `()`
31 = note: () must be a future or must implement `IntoFuture` to be awaited
32 = note: required for `()` to implement `IntoFuture`
33 help: remove the `.await`
38 help: alternatively, consider making `fn f2` asynchronous
40 LL | pub(crate) async fn f2() {}
43 error[E0277]: `()` is not a future
44 --> $DIR/issue-96555.rs:6:12
47 | -------^^^^^^ `()` is not a future
49 | this call returns `()`
51 = help: the trait `Future` is not implemented for `()`
52 = note: () must be a future or must implement `IntoFuture` to be awaited
53 = note: required for `()` to implement `IntoFuture`
54 help: remove the `.await`
59 help: alternatively, consider making `fn f3` asynchronous
64 error: aborting due to 3 previous errors
66 For more information about this error, try `rustc --explain E0277`.