Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
async-await
/
issue-68523.rs
blob: e6250c40c714c3f2147fe02a0d5baf644b3e8479 [
file
] [
log
] [
blame
]
// edition:2018
async
fn
main
()
->
Result
<
i32
,
()>
{
//~^ ERROR `main` function is not allowed to be `async`
//~^^ ERROR `main` has invalid return type `impl std::future::Future`
Ok
(
1
)
}