]>
Commit | Line | Data |
---|---|---|
923072b8 FG |
1 | warning: `#[no_coverage]` does not propagate into items and must be applied to the contained functions directly |
2 | --> $DIR/no-coverage.rs:8:1 | |
3 | | | |
4 | LL | #[no_coverage] | |
5 | | ^^^^^^^^^^^^^^ | |
6 | | | |
7 | note: the lint level is defined here | |
8 | --> $DIR/no-coverage.rs:4:9 | |
9 | | | |
10 | LL | #![warn(unused_attributes)] | |
11 | | ^^^^^^^^^^^^^^^^^ | |
12 | ||
13 | warning: `#[no_coverage]` does not propagate into items and must be applied to the contained functions directly | |
14 | --> $DIR/no-coverage.rs:20:1 | |
15 | | | |
16 | LL | #[no_coverage] | |
17 | | ^^^^^^^^^^^^^^ | |
18 | ||
19 | warning: `#[no_coverage]` may only be applied to function definitions | |
20 | --> $DIR/no-coverage.rs:42:5 | |
21 | | | |
22 | LL | #[no_coverage] | |
23 | | ^^^^^^^^^^^^^^ | |
24 | ||
25 | warning: `#[no_coverage]` may only be applied to function definitions | |
26 | --> $DIR/no-coverage.rs:47:9 | |
27 | | | |
28 | LL | #[no_coverage] | |
29 | | ^^^^^^^^^^^^^^ | |
30 | ||
31 | warning: `#[no_coverage]` may only be applied to function definitions | |
32 | --> $DIR/no-coverage.rs:52:5 | |
33 | | | |
34 | LL | #[no_coverage] | |
35 | | ^^^^^^^^^^^^^^ | |
36 | ||
37 | error[E0788]: `#[no_coverage]` must be applied to coverable code | |
38 | --> $DIR/no-coverage.rs:11:5 | |
39 | | | |
40 | LL | #[no_coverage] | |
41 | | ^^^^^^^^^^^^^^ | |
42 | LL | const X: u32; | |
43 | | ------------- not coverable code | |
44 | ||
45 | error[E0788]: `#[no_coverage]` must be applied to coverable code | |
46 | --> $DIR/no-coverage.rs:14:5 | |
47 | | | |
48 | LL | #[no_coverage] | |
49 | | ^^^^^^^^^^^^^^ | |
50 | LL | type T; | |
51 | | ------- not coverable code | |
52 | ||
53 | error[E0788]: `#[no_coverage]` must be applied to coverable code | |
54 | --> $DIR/no-coverage.rs:25:5 | |
55 | | | |
56 | LL | #[no_coverage] | |
57 | | ^^^^^^^^^^^^^^ | |
58 | LL | type T = Self; | |
59 | | -------------- not coverable code | |
60 | ||
61 | error[E0788]: `#[no_coverage]` must be applied to coverable code | |
62 | --> $DIR/no-coverage.rs:28:5 | |
63 | | | |
64 | LL | #[no_coverage] | |
65 | | ^^^^^^^^^^^^^^ | |
66 | LL | type U = impl Trait; | |
67 | | -------------------- not coverable code | |
68 | ||
69 | error[E0788]: `#[no_coverage]` must be applied to coverable code | |
70 | --> $DIR/no-coverage.rs:33:5 | |
71 | | | |
72 | LL | #[no_coverage] | |
73 | | ^^^^^^^^^^^^^^ | |
74 | LL | static X: u32; | |
75 | | -------------- not coverable code | |
76 | ||
77 | error[E0788]: `#[no_coverage]` must be applied to coverable code | |
78 | --> $DIR/no-coverage.rs:36:5 | |
79 | | | |
80 | LL | #[no_coverage] | |
81 | | ^^^^^^^^^^^^^^ | |
82 | LL | type T; | |
83 | | ------- not coverable code | |
84 | ||
85 | warning: `#[no_coverage]` does not propagate into items and must be applied to the contained functions directly | |
86 | --> $DIR/no-coverage.rs:5:1 | |
87 | | | |
88 | LL | #![no_coverage] | |
89 | | ^^^^^^^^^^^^^^^ | |
90 | ||
91 | error: unconstrained opaque type | |
92 | --> $DIR/no-coverage.rs:29:14 | |
93 | | | |
94 | LL | type U = impl Trait; | |
95 | | ^^^^^^^^^^ | |
96 | | | |
97 | = note: `U` must be used in combination with a concrete type within the same module | |
98 | ||
99 | error: aborting due to 7 previous errors; 6 warnings emitted | |
100 | ||
101 | For more information about this error, try `rustc --explain E0788`. |