about summary refs log tree commit diff
path: root/tests/ui/coverage-attr/allowed-positions.stderr
blob: 1690d089a8c5c183a2d73535608467445d1e2d15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
error[E0658]: attributes on expressions are experimental
  --> $DIR/allowed-positions.rs:106:25
   |
LL |     let _closure_expr = #[coverage(off)] || ();
   |                         ^^^^^^^^^^^^^^^^
   |
   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error: `#[coverage]` attribute cannot be used on type aliases
  --> $DIR/allowed-positions.rs:14:1
   |
LL | #[coverage(off)]
   | ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on traits
  --> $DIR/allowed-positions.rs:17:1
   |
LL | #[coverage(off)]
   | ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on associated consts
  --> $DIR/allowed-positions.rs:19:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on associated types
  --> $DIR/allowed-positions.rs:22:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on required trait methods
  --> $DIR/allowed-positions.rs:25:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to impl blocks, functions, closures, provided trait methods, trait methods in impl blocks, inherent methods, modules, and crates

error: `#[coverage]` attribute cannot be used on required trait methods
  --> $DIR/allowed-positions.rs:31:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to impl blocks, functions, closures, provided trait methods, trait methods in impl blocks, inherent methods, modules, and crates

error: `#[coverage]` attribute cannot be used on associated types
  --> $DIR/allowed-positions.rs:39:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on associated types
  --> $DIR/allowed-positions.rs:56:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on structs
  --> $DIR/allowed-positions.rs:61:1
   |
LL | #[coverage(off)]
   | ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on struct fields
  --> $DIR/allowed-positions.rs:63:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on foreign statics
  --> $DIR/allowed-positions.rs:76:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on foreign types
  --> $DIR/allowed-positions.rs:79:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on foreign functions
  --> $DIR/allowed-positions.rs:82:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to methods, impl blocks, functions, closures, modules, and crates

error: `#[coverage]` attribute cannot be used on statements
  --> $DIR/allowed-positions.rs:88:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on statements
  --> $DIR/allowed-positions.rs:94:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on match arms
  --> $DIR/allowed-positions.rs:110:9
   |
LL |         #[coverage(off)]
   |         ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: `#[coverage]` attribute cannot be used on expressions
  --> $DIR/allowed-positions.rs:114:5
   |
LL |     #[coverage(off)]
   |     ^^^^^^^^^^^^^^^^
   |
   = help: `#[coverage]` can be applied to functions, impl blocks, modules, and crates

error: aborting due to 18 previous errors

For more information about this error, try `rustc --explain E0658`.