Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
inference
/
cannot-infer-async.rs
blob: e4ab8f90e4bd3b5d4d58ac6acdd558351203d81b [
file
] [
log
] [
blame
] [
edit
]
//@ edition:2018
use
std
::
io
::
Error
;
fn
make_unit
()
->
Result
<(),
Error
>
{
Ok
(())
}
fn
main
()
{
let
fut
=
async
{
make_unit
()?;
Ok
(())
//~^ ERROR type annotations needed
};
}