summaryrefslogtreecommitdiffstats
path: root/tests/run-make/coverage-reports/expected_show_coverage.unused.txt
blob: 15fcf21c0ef3c2a4cc793587832ca3cc776f4f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
    1|      2|fn foo<T>(x: T) {
    2|      2|    let mut i = 0;
    3|     22|    while i < 10 {
    4|     20|        i != 0 || i != 0;
                                ^2
    5|     20|        i += 1;
    6|       |    }
    7|      2|}
  ------------------
  | unused::foo::<f32>:
  |    1|      1|fn foo<T>(x: T) {
  |    2|      1|    let mut i = 0;
  |    3|     11|    while i < 10 {
  |    4|     10|        i != 0 || i != 0;
  |                                ^1
  |    5|     10|        i += 1;
  |    6|       |    }
  |    7|      1|}
  ------------------
  | unused::foo::<u32>:
  |    1|      1|fn foo<T>(x: T) {
  |    2|      1|    let mut i = 0;
  |    3|     11|    while i < 10 {
  |    4|     10|        i != 0 || i != 0;
  |                                ^1
  |    5|     10|        i += 1;
  |    6|       |    }
  |    7|      1|}
  ------------------
    8|       |
    9|      0|fn unused_template_func<T>(x: T) {
   10|      0|    let mut i = 0;
   11|      0|    while i < 10 {
   12|      0|        i != 0 || i != 0;
   13|      0|        i += 1;
   14|       |    }
   15|      0|}
   16|       |
   17|      0|fn unused_func(mut a: u32) {
   18|      0|    if a != 0 {
   19|      0|        a += 1;
   20|      0|    }
   21|      0|}
   22|       |
   23|      0|fn unused_func2(mut a: u32) {
   24|      0|    if a != 0 {
   25|      0|        a += 1;
   26|      0|    }
   27|      0|}
   28|       |
   29|      0|fn unused_func3(mut a: u32) {
   30|      0|    if a != 0 {
   31|      0|        a += 1;
   32|      0|    }
   33|      0|}
   34|       |
   35|      1|fn main() -> Result<(), u8> {
   36|      1|    foo::<u32>(0);
   37|      1|    foo::<f32>(0.0);
   38|      1|    Ok(())
   39|      1|}