rust/tests/ui/async-await/issue-70594.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
382 B
Plaintext
Raw Normal View History

2020-03-31 17:41:40 -05:00
error[E0728]: `await` is only allowed inside `async` functions and blocks
2023-04-25 13:59:16 -05:00
--> $DIR/issue-70594.rs:4:12
2020-03-31 17:41:40 -05:00
|
LL | [1; ().await];
| ---^^^^^
| | |
| | only allowed inside `async` functions and blocks
| this is not `async`
2020-03-31 17:41:40 -05:00
error: aborting due to 1 previous error
2020-03-31 17:41:40 -05:00
For more information about this error, try `rustc --explain E0728`.