Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
async-await
/
proper-span-for-type-error.fixed
blob: 03e808fe7a6770f4ff000b8e5d883702d5680968 [
file
] [
log
] [
blame
]
//@ edition:2021
//@ run-rustfix
#![allow(dead_code)]
async fn a
()
{}
async fn foo
()
->
Result
<(),
i32
>
{
a
().
await
;
Ok
(())
//~ ERROR mismatched types
}
fn main
()
{}