]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/coverage-reports/expected_show_coverage.simple_match.txt
Auto merge of #84904 - ssomers:btree_drop_kv_in_place, r=Mark-Simulacrum
[rust.git] / src / test / run-make-fulldeps / coverage-reports / expected_show_coverage.simple_match.txt
1     1|       |#![allow(unused_assignments, unused_variables)]
2     2|       |
3     3|      1|fn main() {
4     4|      1|    // Initialize test constants in a way that cannot be determined at compile time, to ensure
5     5|      1|    // rustc and LLVM cannot optimize out statements (or coverage counters) downstream from
6     6|      1|    // dependent conditions.
7     7|      1|    let is_true = std::env::args().len() == 1;
8     8|      1|
9     9|      1|    let mut countdown = 1;
10    10|      1|    if is_true {
11    11|      1|        countdown = 0;
12    12|      1|    }
13                    ^0
14    13|       |
15    14|       |    for
16    15|      2|        _
17    16|       |    in
18    17|      3|        0..2
19    18|       |    {
20    19|       |        let z
21    20|       |        ;
22    21|       |        match
23    22|      2|            countdown
24    23|       |        {
25    24|      1|            x
26    25|       |            if
27    26|      2|                x
28    27|      2|                    <
29    28|      2|                1
30    29|       |            =>
31    30|      1|            {
32    31|      1|                z = countdown
33    32|      1|                ;
34    33|      1|                let y = countdown
35    34|      1|                ;
36    35|      1|                countdown = 10
37    36|      1|                ;
38    37|      1|            }
39    38|       |            _
40    39|       |            =>
41    40|      1|            {}
42    41|       |        }
43    42|       |    }
44    43|      1|}
45