about summary refs log tree commit diff
path: root/tests/coverage/async_block.coverage
blob: 7ccc83499e63ef613d7d718db78525fc9a553e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
   LL|       |//@ edition: 2021
   LL|       |
   LL|       |//@ aux-build: executor.rs
   LL|       |extern crate executor;
   LL|       |
   LL|      1|fn main() {
   LL|     17|    for i in 0..16 {
                      ^16
   LL|     16|        let future = async {
   LL|     16|            if i >= 12 {
   LL|      4|                println!("big");
   LL|     12|            } else {
   LL|     12|                println!("small");
   LL|     12|            }
   LL|     16|        };
   LL|     16|        executor::block_on(future);
   LL|     16|    }
   LL|      1|}