Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
async-await
/
async-closures
/
return-type-mismatch.rs
blob: 992f033180e3a34da9d14b41662651eca5b01ab0 [
file
] [
log
] [
blame
]
//@ aux-build:block-on.rs
//@ edition:2021
#![
feature
(
async_closure
)]
extern
crate block_on
;
fn
main
()
{
block_on
::
block_on
(
async
{
let
x
=
async
||
->
i32
{
0
};
let
y
:
usize
=
x
().
await
;
//~^ ERROR mismatched types
});
}