@@ -132,7 +132,8 @@ LL | #![macro_export]
132
132
|
133
133
help: perhaps you meant to use an outer attribute
134
134
|
135
- LL | #[macro_export]
135
+ LL - #![macro_export]
136
+ LL + #[macro_export]
136
137
|
137
138
138
139
error: `rustc_main` attribute cannot be used at crate level
@@ -143,8 +144,9 @@ LL | #![rustc_main]
143
144
|
144
145
help: perhaps you meant to use an outer attribute
145
146
|
146
- LL | #[rustc_main]
147
- | ~~~~~~~~~~~~~
147
+ LL - #![rustc_main]
148
+ LL + #[rustc_main]
149
+ |
148
150
149
151
error: `start` attribute cannot be used at crate level
150
152
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:16:1
@@ -154,7 +156,8 @@ LL | #![start]
154
156
|
155
157
help: perhaps you meant to use an outer attribute
156
158
|
157
- LL | #[start]
159
+ LL - #![start]
160
+ LL + #[start]
158
161
|
159
162
160
163
error: `repr` attribute cannot be used at crate level
@@ -165,7 +168,8 @@ LL | #![repr()]
165
168
|
166
169
help: perhaps you meant to use an outer attribute
167
170
|
168
- LL | #[repr()]
171
+ LL - #![repr()]
172
+ LL + #[repr()]
169
173
|
170
174
171
175
error: `path` attribute cannot be used at crate level
@@ -176,7 +180,8 @@ LL | #![path = "3800"]
176
180
|
177
181
help: perhaps you meant to use an outer attribute
178
182
|
179
- LL | #[path = "3800"]
183
+ LL - #![path = "3800"]
184
+ LL + #[path = "3800"]
180
185
|
181
186
182
187
error: `automatically_derived` attribute cannot be used at crate level
@@ -187,7 +192,8 @@ LL | #![automatically_derived]
187
192
|
188
193
help: perhaps you meant to use an outer attribute
189
194
|
190
- LL | #[automatically_derived]
195
+ LL - #![automatically_derived]
196
+ LL + #[automatically_derived]
191
197
|
192
198
193
199
error[E0518]: attribute should be applied to function or closure
0 commit comments