Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
async-await
/
issues
/
issue-51719.rs
blob: 09241f982aa8a6685e7bf31e4b5acb5d615a87be [
file
] [
log
] [
blame
]
// edition:2018
//
// Tests that the .await syntax can't be used to make a generator
async
fn
foo
()
{}
fn
make_generator
()
{
let
_gen
=
||
foo
().
await
;
//~^ ERROR `await` is only allowed inside `async` functions and blocks
}
fn
main
()
{}