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