@@ -7,28 +7,28 @@ LL | / trait Trait {
7
7
LL | | #[coverage(off)]
8
8
LL | | const X: u32;
9
9
... |
10
- LL | | type U ;
10
+ LL | | fn g() ;
11
11
LL | | }
12
12
| |_- not a function or closure
13
13
14
14
error[E0788]: attribute should be applied to a function definition or closure
15
- --> $DIR/no-coverage.rs:38 :5
15
+ --> $DIR/no-coverage.rs:47 :5
16
16
|
17
17
LL | #[coverage(off)]
18
18
| ^^^^^^^^^^^^^^^^
19
19
LL | let _ = ();
20
20
| ----------- not a function or closure
21
21
22
22
error[E0788]: attribute should be applied to a function definition or closure
23
- --> $DIR/no-coverage.rs:42 :9
23
+ --> $DIR/no-coverage.rs:51 :9
24
24
|
25
25
LL | #[coverage(off)]
26
26
| ^^^^^^^^^^^^^^^^
27
27
LL | () => (),
28
28
| -------- not a function or closure
29
29
30
30
error[E0788]: attribute should be applied to a function definition or closure
31
- --> $DIR/no-coverage.rs:46 :5
31
+ --> $DIR/no-coverage.rs:55 :5
32
32
|
33
33
LL | #[coverage(off)]
34
34
| ^^^^^^^^^^^^^^^^
@@ -52,45 +52,61 @@ LL | type T;
52
52
| ------- not a function or closure
53
53
54
54
error[E0788]: attribute should be applied to a function definition or closure
55
- --> $DIR/no-coverage.rs:21:5
55
+ --> $DIR/no-coverage.rs:16:5
56
+ |
57
+ LL | #[coverage(off)]
58
+ | ^^^^^^^^^^^^^^^^
59
+ LL | fn f(&self);
60
+ | ------------ not a function or closure
61
+
62
+ error[E0788]: attribute should be applied to a function definition or closure
63
+ --> $DIR/no-coverage.rs:19:5
64
+ |
65
+ LL | #[coverage(off)]
66
+ | ^^^^^^^^^^^^^^^^
67
+ LL | fn g();
68
+ | ------- not a function or closure
69
+
70
+ error[E0788]: attribute should be applied to a function definition or closure
71
+ --> $DIR/no-coverage.rs:27:5
56
72
|
57
73
LL | #[coverage(off)]
58
74
| ^^^^^^^^^^^^^^^^
59
75
LL | type T = Self;
60
76
| -------------- not a function or closure
61
77
62
78
error[E0788]: attribute should be applied to a function definition or closure
63
- --> $DIR/no-coverage.rs:24 :5
79
+ --> $DIR/no-coverage.rs:30 :5
64
80
|
65
81
LL | #[coverage(off)]
66
82
| ^^^^^^^^^^^^^^^^
67
83
LL | type U = impl Trait;
68
84
| -------------------- not a function or closure
69
85
70
86
error[E0788]: attribute should be applied to a function definition or closure
71
- --> $DIR/no-coverage.rs:29 :5
87
+ --> $DIR/no-coverage.rs:38 :5
72
88
|
73
89
LL | #[coverage(off)]
74
90
| ^^^^^^^^^^^^^^^^
75
91
LL | static X: u32;
76
92
| -------------- not a function or closure
77
93
78
94
error[E0788]: attribute should be applied to a function definition or closure
79
- --> $DIR/no-coverage.rs:32 :5
95
+ --> $DIR/no-coverage.rs:41 :5
80
96
|
81
97
LL | #[coverage(off)]
82
98
| ^^^^^^^^^^^^^^^^
83
99
LL | type T;
84
100
| ------- not a function or closure
85
101
86
102
error: unconstrained opaque type
87
- --> $DIR/no-coverage.rs:25 :14
103
+ --> $DIR/no-coverage.rs:31 :14
88
104
|
89
105
LL | type U = impl Trait;
90
106
| ^^^^^^^^^^
91
107
|
92
108
= note: `U` must be used in combination with a concrete type within the same impl
93
109
94
- error: aborting due to 11 previous errors
110
+ error: aborting due to 13 previous errors
95
111
96
112
For more information about this error, try `rustc --explain E0788`.
0 commit comments