Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
async-await
/
issues
/
issue-51751.rs
blob: bc85a96cea99e90bdcdcab74ffd6b2cd2593d8a2 [
file
] [
log
] [
blame
]
// edition:2018
async
fn
inc
(
limit
:
i64
)
->
i64
{
limit
+
1
}
fn
main
()
{
let
result
=
inc
(
10000
);
let
finished
=
result
.
await
;
//~^ ERROR `await` is only allowed inside `async` functions and blocks
}