Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
async-await
/
async-closures
/
higher-ranked.rs
blob: 28f9df6013040506394070964dbd0a0cce342806 [
file
] [
log
] [
blame
]
//@ aux-build:block-on.rs
//@ edition:2021
//@ build-pass
extern
crate block_on
;
fn
main
()
{
block_on
::
block_on
(
async
{
let
x
=
async
move
|
x
:
&
str
|
{
println
!(
"{x}"
);
};
x
(
"hello!"
).
await
;
});
}