Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
src
/
tools
/
rustfmt
/
tests
/
target
/
async_closure.rs
blob: 83ba5d6637d5aad1c4313db4d0e0b1c6a933ad12 [
file
]
//@ rustfmt-edition: 2018
fn
main
()
{
let
async_closure
=
async
{
let
x
=
3
;
x
};
let
f
=
async
/* comment */
{
let
x
=
3
;
x
};
let
g
=
async
/* comment */
move
{
let
x
=
3
;
x
};
let
f
=
|
x
|
async
{
println
!(
"hello, world"
);
};
}