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