about summary refs log tree commit diff
path: root/tests/coverage/async_block.rs
blob: 05a105224bbb1da33cbd3193975e291a2f9c69a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ 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);
    }
}