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
25 | ^^^^^^ `()` is not a future
27 = help: the trait `Future` is not implemented for `()`
28 = note: () must be a future or must implement `IntoFuture` to be awaited
29 = note: required because of the requirements on the impl of `IntoFuture` for `()`
30 help: remove the `.await`
36 error: aborting due to 4 previous errors
38 Some errors have detailed explanations: E0277, E0728, E0744.
39 For more information about an error, try `rustc --explain E0277`.