1
1
error: malformed `coverage` attribute input
2
- --> $DIR/name-value.rs:15 :1
2
+ --> $DIR/name-value.rs:11 :1
3
3
|
4
4
LL | #[coverage = "off"]
5
5
| ^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
help: the following are the possible correct uses
8
8
|
9
- LL | #[coverage(on| off)]
10
- | ~~~~~~~~~~~~~~~~~~~
11
- LL | #[coverage]
12
- | ~~~~~~~~~~~
9
+ LL | #[coverage(off)]
10
+ |
11
+ LL | #[coverage(on) ]
12
+ |
13
13
14
14
error: malformed `coverage` attribute input
15
- --> $DIR/name-value.rs:19 :5
15
+ --> $DIR/name-value.rs:17 :5
16
16
|
17
17
LL | #![coverage = "off"]
18
18
| ^^^^^^^^^^^^^^^^^^^^
19
19
|
20
20
help: the following are the possible correct uses
21
21
|
22
- LL | #![coverage(on| off)]
23
- | ~~~~~~~~~~~~~~~~~~~~
24
- LL | #![coverage]
25
- | ~~~~~~~~~~~~
22
+ LL | #![coverage(off)]
23
+ |
24
+ LL | #![coverage(on) ]
25
+ |
26
26
27
27
error: malformed `coverage` attribute input
28
28
--> $DIR/name-value.rs:22:1
@@ -32,22 +32,22 @@ LL | #[coverage = "off"]
32
32
|
33
33
help: the following are the possible correct uses
34
34
|
35
- LL | #[coverage(on| off)]
35
+ LL | #[coverage(off)]
36
36
|
37
- LL | #[coverage]
37
+ LL | #[coverage(on) ]
38
38
|
39
39
40
40
error: malformed `coverage` attribute input
41
- --> $DIR/name-value.rs:29 :5
41
+ --> $DIR/name-value.rs:31 :5
42
42
|
43
43
LL | #[coverage = "off"]
44
44
| ^^^^^^^^^^^^^^^^^^^
45
45
|
46
46
help: the following are the possible correct uses
47
47
|
48
- LL | #[coverage(on| off)]
48
+ LL | #[coverage(off)]
49
49
|
50
- LL | #[coverage]
50
+ LL | #[coverage(on) ]
51
51
|
52
52
53
53
error: malformed `coverage` attribute input
@@ -58,162 +58,220 @@ LL | #[coverage = "off"]
58
58
|
59
59
help: the following are the possible correct uses
60
60
|
61
- LL | #[coverage(on| off)]
62
- | ~~~~~~~~~~~~~~~~~~~
63
- LL | #[coverage]
64
- | ~~~~~~~~~~~
61
+ LL | #[coverage(off)]
62
+ |
63
+ LL | #[coverage(on) ]
64
+ |
65
65
66
66
error: malformed `coverage` attribute input
67
- --> $DIR/name-value.rs:37 :5
67
+ --> $DIR/name-value.rs:41 :5
68
68
|
69
69
LL | #[coverage = "off"]
70
70
| ^^^^^^^^^^^^^^^^^^^
71
71
|
72
72
help: the following are the possible correct uses
73
73
|
74
- LL | #[coverage(on| off)]
74
+ LL | #[coverage(off)]
75
75
|
76
- LL | #[coverage]
76
+ LL | #[coverage(on) ]
77
77
|
78
78
79
79
error: malformed `coverage` attribute input
80
- --> $DIR/name-value.rs:42 :5
80
+ --> $DIR/name-value.rs:46 :5
81
81
|
82
82
LL | #[coverage = "off"]
83
83
| ^^^^^^^^^^^^^^^^^^^
84
84
|
85
85
help: the following are the possible correct uses
86
86
|
87
- LL | #[coverage(on| off)]
87
+ LL | #[coverage(off)]
88
88
|
89
- LL | #[coverage]
89
+ LL | #[coverage(on) ]
90
90
|
91
91
92
92
error: malformed `coverage` attribute input
93
- --> $DIR/name-value.rs:35 :1
93
+ --> $DIR/name-value.rs:37 :1
94
94
|
95
95
LL | #[coverage = "off"]
96
96
| ^^^^^^^^^^^^^^^^^^^
97
97
|
98
98
help: the following are the possible correct uses
99
99
|
100
- LL | #[coverage(on| off)]
101
- | ~~~~~~~~~~~~~~~~~~~
102
- LL | #[coverage]
103
- | ~~~~~~~~~~~
100
+ LL | #[coverage(off)]
101
+ |
102
+ LL | #[coverage(on) ]
103
+ |
104
104
105
105
error: malformed `coverage` attribute input
106
- --> $DIR/name-value.rs:50 :5
106
+ --> $DIR/name-value.rs:56 :5
107
107
|
108
108
LL | #[coverage = "off"]
109
109
| ^^^^^^^^^^^^^^^^^^^
110
110
|
111
111
help: the following are the possible correct uses
112
112
|
113
- LL | #[coverage(on| off)]
113
+ LL | #[coverage(off)]
114
114
|
115
- LL | #[coverage]
115
+ LL | #[coverage(on) ]
116
116
|
117
117
118
118
error: malformed `coverage` attribute input
119
- --> $DIR/name-value.rs:55 :5
119
+ --> $DIR/name-value.rs:61 :5
120
120
|
121
121
LL | #[coverage = "off"]
122
122
| ^^^^^^^^^^^^^^^^^^^
123
123
|
124
124
help: the following are the possible correct uses
125
125
|
126
- LL | #[coverage(on| off)]
126
+ LL | #[coverage(off)]
127
127
|
128
- LL | #[coverage]
128
+ LL | #[coverage(on) ]
129
129
|
130
130
131
131
error: malformed `coverage` attribute input
132
- --> $DIR/name-value.rs:48 :1
132
+ --> $DIR/name-value.rs:52 :1
133
133
|
134
134
LL | #[coverage = "off"]
135
135
| ^^^^^^^^^^^^^^^^^^^
136
136
|
137
137
help: the following are the possible correct uses
138
138
|
139
- LL | #[coverage(on| off)]
140
- | ~~~~~~~~~~~~~~~~~~~
141
- LL | #[coverage]
142
- | ~~~~~~~~~~~
139
+ LL | #[coverage(off)]
140
+ |
141
+ LL | #[coverage(on) ]
142
+ |
143
143
144
144
error: malformed `coverage` attribute input
145
- --> $DIR/name-value.rs:61 :1
145
+ --> $DIR/name-value.rs:67 :1
146
146
|
147
147
LL | #[coverage = "off"]
148
148
| ^^^^^^^^^^^^^^^^^^^
149
149
|
150
150
help: the following are the possible correct uses
151
151
|
152
- LL | #[coverage(on| off)]
152
+ LL | #[coverage(off)]
153
153
|
154
- LL | #[coverage]
154
+ LL | #[coverage(on)]
155
+ |
156
+
157
+ error[E0788]: attribute should be applied to a function definition or closure
158
+ --> $DIR/name-value.rs:11:1
155
159
|
160
+ LL | #[coverage = "off"]
161
+ | ^^^^^^^^^^^^^^^^^^^
162
+ ...
163
+ LL | mod my_mod {}
164
+ | ------------- not a function or closure
156
165
157
- error[E0788]: `#[coverage]` must be applied to coverable code
166
+ error[E0788]: attribute should be applied to a function definition or closure
167
+ --> $DIR/name-value.rs:17:5
168
+ |
169
+ LL | / mod my_mod_inner {
170
+ LL | | #![coverage = "off"]
171
+ | | ^^^^^^^^^^^^^^^^^^^^
172
+ LL | |
173
+ LL | |
174
+ LL | | }
175
+ | |_- not a function or closure
176
+
177
+ error[E0788]: attribute should be applied to a function definition or closure
158
178
--> $DIR/name-value.rs:22:1
159
179
|
160
180
LL | #[coverage = "off"]
161
181
| ^^^^^^^^^^^^^^^^^^^
162
182
...
163
183
LL | struct MyStruct;
164
- | ---------------- not coverable code
184
+ | ---------------- not a function or closure
185
+
186
+ error[E0788]: attribute should be applied to a function definition or closure
187
+ --> $DIR/name-value.rs:27:1
188
+ |
189
+ LL | #[coverage = "off"]
190
+ | ^^^^^^^^^^^^^^^^^^^
191
+ ...
192
+ LL | / impl MyStruct {
193
+ LL | | #[coverage = "off"]
194
+ LL | |
195
+ LL | |
196
+ LL | | const X: u32 = 7;
197
+ LL | | }
198
+ | |_- not a function or closure
199
+
200
+ error[E0788]: attribute should be applied to a function definition or closure
201
+ --> $DIR/name-value.rs:37:1
202
+ |
203
+ LL | #[coverage = "off"]
204
+ | ^^^^^^^^^^^^^^^^^^^
205
+ ...
206
+ LL | / trait MyTrait {
207
+ LL | | #[coverage = "off"]
208
+ LL | |
209
+ LL | |
210
+ ... |
211
+ LL | | type T;
212
+ LL | | }
213
+ | |_- not a function or closure
165
214
166
- error[E0788]: `#[coverage]` must be applied to coverable code
167
- --> $DIR/name-value.rs:37:5
215
+ error[E0788]: attribute should be applied to a function definition or closure
216
+ --> $DIR/name-value.rs:52:1
217
+ |
218
+ LL | #[coverage = "off"]
219
+ | ^^^^^^^^^^^^^^^^^^^
220
+ ...
221
+ LL | / impl MyTrait for MyStruct {
222
+ LL | | #[coverage = "off"]
223
+ LL | |
224
+ LL | |
225
+ ... |
226
+ LL | | type T = ();
227
+ LL | | }
228
+ | |_- not a function or closure
229
+
230
+ error[E0788]: attribute should be applied to a function definition or closure
231
+ --> $DIR/name-value.rs:41:5
168
232
|
169
233
LL | #[coverage = "off"]
170
234
| ^^^^^^^^^^^^^^^^^^^
171
235
...
172
236
LL | const X: u32;
173
- | ------------- not coverable code
237
+ | ------------- not a function or closure
174
238
175
- error[E0788]: `#[coverage]` must be applied to coverable code
176
- --> $DIR/name-value.rs:42 :5
239
+ error[E0788]: attribute should be applied to a function definition or closure
240
+ --> $DIR/name-value.rs:46 :5
177
241
|
178
242
LL | #[coverage = "off"]
179
243
| ^^^^^^^^^^^^^^^^^^^
180
244
...
181
245
LL | type T;
182
- | ------- not coverable code
246
+ | ------- not a function or closure
183
247
184
- error[E0788]: `#[coverage]` must be applied to coverable code
185
- --> $DIR/name-value.rs:29 :5
248
+ error[E0788]: attribute should be applied to a function definition or closure
249
+ --> $DIR/name-value.rs:31 :5
186
250
|
187
251
LL | #[coverage = "off"]
188
252
| ^^^^^^^^^^^^^^^^^^^
189
253
...
190
254
LL | const X: u32 = 7;
191
- | ----------------- not coverable code
255
+ | ----------------- not a function or closure
192
256
193
- error[E0788]: `#[coverage]` must be applied to coverable code
194
- --> $DIR/name-value.rs:50 :5
257
+ error[E0788]: attribute should be applied to a function definition or closure
258
+ --> $DIR/name-value.rs:56 :5
195
259
|
196
260
LL | #[coverage = "off"]
197
261
| ^^^^^^^^^^^^^^^^^^^
198
262
...
199
263
LL | const X: u32 = 8;
200
- | ----------------- not coverable code
264
+ | ----------------- not a function or closure
201
265
202
- error[E0788]: `#[coverage]` must be applied to coverable code
203
- --> $DIR/name-value.rs:55 :5
266
+ error[E0788]: attribute should be applied to a function definition or closure
267
+ --> $DIR/name-value.rs:61 :5
204
268
|
205
269
LL | #[coverage = "off"]
206
270
| ^^^^^^^^^^^^^^^^^^^
207
271
...
208
272
LL | type T = ();
209
- | ------------ not coverable code
210
-
211
- error: expected `coverage(off)` or `coverage(on)`
212
- --> $DIR/name-value.rs:61:1
213
- |
214
- LL | #[coverage = "off"]
215
- | ^^^^^^^^^^^^^^^^^^^
273
+ | ------------ not a function or closure
216
274
217
- error: aborting due to 19 previous errors
275
+ error: aborting due to 23 previous errors
218
276
219
277
For more information about this error, try `rustc --explain E0788`.
0 commit comments