summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/no-coverage.stderr
blob: a87b0fb49f00ee1a288195896997d3918f3eb0cd (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
warning: `#[coverage]` does not propagate into items and must be applied to the contained functions directly
  --> $DIR/no-coverage.rs:8:1
   |
LL | #[coverage(off)]
   | ^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/no-coverage.rs:4:9
   |
LL | #![warn(unused_attributes)]
   |         ^^^^^^^^^^^^^^^^^

warning: `#[coverage]` does not propagate into items and must be applied to the contained functions directly
  --> $DIR/no-coverage.rs:20:1
   |
LL | #[coverage(off)]
   | ^^^^^^^^^^^^^^^^

warning: `#[coverage]` may only be applied to function definitions
  --> $DIR/no-coverage.rs:42:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^

warning: `#[coverage]` may only be applied to function definitions
  --> $DIR/no-coverage.rs:47:9
   |
LL |         #[coverage(off)]
   |         ^^^^^^^^^^^^^^^^

warning: `#[coverage]` may only be applied to function definitions
  --> $DIR/no-coverage.rs:52:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^

error[E0788]: `#[coverage]` must be applied to coverable code
  --> $DIR/no-coverage.rs:11:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
LL |     const X: u32;
   |     ------------- not coverable code

error[E0788]: `#[coverage]` must be applied to coverable code
  --> $DIR/no-coverage.rs:14:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
LL |     type T;
   |     ------- not coverable code

error[E0788]: `#[coverage]` must be applied to coverable code
  --> $DIR/no-coverage.rs:25:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
LL |     type T = Self;
   |     -------------- not coverable code

error[E0788]: `#[coverage]` must be applied to coverable code
  --> $DIR/no-coverage.rs:28:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
LL |     type U = impl Trait;
   |     -------------------- not coverable code

error[E0788]: `#[coverage]` must be applied to coverable code
  --> $DIR/no-coverage.rs:33:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
LL |     static X: u32;
   |     -------------- not coverable code

error[E0788]: `#[coverage]` must be applied to coverable code
  --> $DIR/no-coverage.rs:36:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
LL |     type T;
   |     ------- not coverable code

warning: `#[coverage]` does not propagate into items and must be applied to the contained functions directly
  --> $DIR/no-coverage.rs:5:1
   |
LL | #![coverage(off)]
   | ^^^^^^^^^^^^^^^^^

error: unconstrained opaque type
  --> $DIR/no-coverage.rs:29:14
   |
LL |     type U = impl Trait;
   |              ^^^^^^^^^^
   |
   = note: `U` must be used in combination with a concrete type within the same impl

error: aborting due to 7 previous errors; 6 warnings emitted

For more information about this error, try `rustc --explain E0788`.