1
1
error[E0788]: attribute should be applied to a function definition or closure
2
- --> $DIR/no-coverage .rs:9 :1
2
+ --> $DIR/allowed-positions .rs:11 :1
3
3
|
4
4
LL | #[coverage(off)]
5
5
| ^^^^^^^^^^^^^^^^
@@ -12,95 +12,95 @@ 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:50 :5
15
+ --> $DIR/allowed-positions .rs:52 :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:54 :9
23
+ --> $DIR/allowed-positions .rs:56 :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:58 :5
31
+ --> $DIR/allowed-positions .rs:60 :5
32
32
|
33
33
LL | #[coverage(off)]
34
34
| ^^^^^^^^^^^^^^^^
35
35
LL | return ();
36
36
| --------- not a function or closure
37
37
38
38
error[E0788]: attribute should be applied to a function definition or closure
39
- --> $DIR/no-coverage .rs:11 :5
39
+ --> $DIR/allowed-positions .rs:13 :5
40
40
|
41
41
LL | #[coverage(off)]
42
42
| ^^^^^^^^^^^^^^^^
43
43
LL | const X: u32;
44
44
| ------------- not a function or closure
45
45
46
46
error[E0788]: attribute should be applied to a function definition or closure
47
- --> $DIR/no-coverage .rs:14 :5
47
+ --> $DIR/allowed-positions .rs:16 :5
48
48
|
49
49
LL | #[coverage(off)]
50
50
| ^^^^^^^^^^^^^^^^
51
51
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:19 :5
55
+ --> $DIR/allowed-positions .rs:21 :5
56
56
|
57
57
LL | #[coverage(off)]
58
58
| ^^^^^^^^^^^^^^^^
59
59
LL | fn f(&self);
60
60
| ------------ not a function or closure
61
61
62
62
error[E0788]: attribute should be applied to a function definition or closure
63
- --> $DIR/no-coverage .rs:22 :5
63
+ --> $DIR/allowed-positions .rs:24 :5
64
64
|
65
65
LL | #[coverage(off)]
66
66
| ^^^^^^^^^^^^^^^^
67
67
LL | fn g();
68
68
| ------- not a function or closure
69
69
70
70
error[E0788]: attribute should be applied to a function definition or closure
71
- --> $DIR/no-coverage .rs:30 :5
71
+ --> $DIR/allowed-positions .rs:32 :5
72
72
|
73
73
LL | #[coverage(off)]
74
74
| ^^^^^^^^^^^^^^^^
75
75
LL | type T = Self;
76
76
| -------------- not a function or closure
77
77
78
78
error[E0788]: attribute should be applied to a function definition or closure
79
- --> $DIR/no-coverage .rs:33 :5
79
+ --> $DIR/allowed-positions .rs:35 :5
80
80
|
81
81
LL | #[coverage(off)]
82
82
| ^^^^^^^^^^^^^^^^
83
83
LL | type U = impl Trait;
84
84
| -------------------- not a function or closure
85
85
86
86
error[E0788]: attribute should be applied to a function definition or closure
87
- --> $DIR/no-coverage .rs:41 :5
87
+ --> $DIR/allowed-positions .rs:43 :5
88
88
|
89
89
LL | #[coverage(off)]
90
90
| ^^^^^^^^^^^^^^^^
91
91
LL | static X: u32;
92
92
| -------------- not a function or closure
93
93
94
94
error[E0788]: attribute should be applied to a function definition or closure
95
- --> $DIR/no-coverage .rs:44 :5
95
+ --> $DIR/allowed-positions .rs:46 :5
96
96
|
97
97
LL | #[coverage(off)]
98
98
| ^^^^^^^^^^^^^^^^
99
99
LL | type T;
100
100
| ------- not a function or closure
101
101
102
102
error: unconstrained opaque type
103
- --> $DIR/no-coverage .rs:34 :14
103
+ --> $DIR/allowed-positions .rs:36 :14
104
104
|
105
105
LL | type U = impl Trait;
106
106
| ^^^^^^^^^^
0 commit comments