Sign in
fuchsia
/
third_party
/
rust
/
31face9f6087c2914ea995af969bb995629a5e78
/
.
/
tests
/
coverage
/
async_block.rs
blob: d1e37ab75058c7b3eeb63d24b03580bfc6bcef33 [
file
] [
log
] [
blame
]
#![
feature
(
coverage_attribute
)]
//@ edition: 2021
//@ aux-build: executor.rs
extern
crate executor
;
fn
main
()
{
for
i in
0.
.
16
{
let
future
=
async
{
if
i
>=
12
{
println
!(
"big"
);
}
else
{
println
!(
"small"
);
}
};
executor
::
block_on
(
future
);
}
}