2019-06-26 07:48:41 -05:00
|
|
|
error[E0728]: `await` is only allowed inside `async` functions and blocks
|
2023-04-25 13:59:16 -05:00
|
|
|
--> $DIR/issue-62009-1.rs:6:23
|
2019-06-26 07:48:41 -05:00
|
|
|
|
|
|
|
|
LL | fn main() {
|
2024-04-11 08:15:34 -05:00
|
|
|
| --------- this is not `async`
|
2019-06-26 07:48:41 -05:00
|
|
|
LL | async { let (); }.await;
|
2023-04-25 13:59:16 -05:00
|
|
|
| ^^^^^ only allowed inside `async` functions and blocks
|
2019-06-26 07:48:41 -05:00
|
|
|
|
|
|
|
error[E0728]: `await` is only allowed inside `async` functions and blocks
|
2023-04-25 13:59:16 -05:00
|
|
|
--> $DIR/issue-62009-1.rs:10:7
|
2019-06-26 07:48:41 -05:00
|
|
|
|
|
2021-11-15 18:57:53 -06:00
|
|
|
LL | fn main() {
|
2024-04-11 08:15:34 -05:00
|
|
|
| --------- this is not `async`
|
2019-06-26 07:48:41 -05:00
|
|
|
...
|
2021-11-15 18:57:53 -06:00
|
|
|
LL | }.await;
|
2023-04-25 13:59:16 -05:00
|
|
|
| ^^^^^ only allowed inside `async` functions and blocks
|
2019-06-26 07:48:41 -05:00
|
|
|
|
|
|
|
error[E0728]: `await` is only allowed inside `async` functions and blocks
|
2023-04-25 13:59:16 -05:00
|
|
|
--> $DIR/issue-62009-1.rs:12:16
|
2019-06-26 07:48:41 -05:00
|
|
|
|
|
|
|
|
LL | fn main() {
|
2024-04-11 08:15:34 -05:00
|
|
|
| --------- this is not `async`
|
2019-06-26 07:48:41 -05:00
|
|
|
...
|
|
|
|
LL | (|_| 2333).await;
|
2023-04-25 13:59:16 -05:00
|
|
|
| ^^^^^ only allowed inside `async` functions and blocks
|
2019-06-26 07:48:41 -05:00
|
|
|
|
2023-11-28 13:06:23 -06:00
|
|
|
error: aborting due to 3 previous errors
|
2019-06-26 07:48:41 -05:00
|
|
|
|
2023-11-28 13:06:23 -06:00
|
|
|
For more information about this error, try `rustc --explain E0728`.
|