]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-62009-2.stderr
Fix rebase and clippy tests
[rust.git] / src / test / ui / async-await / issues / issue-62009-2.stderr
1 error[E0728]: `await` is only allowed inside `async` functions and blocks
2   --> $DIR/issue-62009-2.rs:8:22
3    |
4 LL | fn main() {
5    |    ---- this is not `async`
6 LL |     (async || 2333)().await;
7    |                      ^^^^^^ only allowed inside `async` functions and blocks
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0728`.