fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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