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