]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issues/issue-62009-2.stderr
Rollup merge of #107061 - compiler-errors:new-solver-new-candidates-3, r=lcnr
[rust.git] / tests / 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`.