1 error[E0728]: `await` is only allowed inside `async` functions and blocks
2 --> $DIR/issue-70594.rs:4:11
5 | --- this is not `async`
7 | ^^^^^^ only allowed inside `async` functions and blocks
9 error[E0744]: `.await` is not allowed in a `const`
10 --> $DIR/issue-70594.rs:4:9
15 error[E0744]: `.await` is not allowed in a `const`
16 --> $DIR/issue-70594.rs:4:11
21 error[E0277]: `()` is not a future
22 --> $DIR/issue-70594.rs:4:11
27 | `()` is not a future
28 | help: remove the `.await`
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`
34 error: aborting due to 4 previous errors
36 Some errors have detailed explanations: E0277, E0728, E0744.
37 For more information about an error, try `rustc --explain E0277`.