Open
Description
async fn foo(_: &u8) {}
expanded with rustc --edition 2018 -Z unpretty=hir
yields
async fn foo<'_>(__arg0: &'_ u8)
->
::std::future::from_generator(move ||
{
let __arg0 = __arg0;
let _ = __arg0;
})
which is not correct. We should drop the async
, give a return type and print some {}
around the function body.
cc @cramertj