@@ -132,7 +132,8 @@ LL | #![macro_export]
132132 |
133133help: perhaps you meant to use an outer attribute
134134 |
135- LL | #[macro_export]
135+ LL - #![macro_export]
136+ LL + #[macro_export]
136137 |
137138
138139error: `rustc_main` attribute cannot be used at crate level
@@ -143,8 +144,9 @@ LL | #![rustc_main]
143144 |
144145help: perhaps you meant to use an outer attribute
145146 |
146- LL | #[rustc_main]
147- | ~~~~~~~~~~~~~
147+ LL - #![rustc_main]
148+ LL + #[rustc_main]
149+ |
148150
149151error: `start` attribute cannot be used at crate level
150152 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:16:1
@@ -154,7 +156,8 @@ LL | #![start]
154156 |
155157help: perhaps you meant to use an outer attribute
156158 |
157- LL | #[start]
159+ LL - #![start]
160+ LL + #[start]
158161 |
159162
160163error: `repr` attribute cannot be used at crate level
@@ -165,7 +168,8 @@ LL | #![repr()]
165168 |
166169help: perhaps you meant to use an outer attribute
167170 |
168- LL | #[repr()]
171+ LL - #![repr()]
172+ LL + #[repr()]
169173 |
170174
171175error: `path` attribute cannot be used at crate level
@@ -176,7 +180,8 @@ LL | #![path = "3800"]
176180 |
177181help: perhaps you meant to use an outer attribute
178182 |
179- LL | #[path = "3800"]
183+ LL - #![path = "3800"]
184+ LL + #[path = "3800"]
180185 |
181186
182187error: `automatically_derived` attribute cannot be used at crate level
@@ -187,7 +192,8 @@ LL | #![automatically_derived]
187192 |
188193help: perhaps you meant to use an outer attribute
189194 |
190- LL | #[automatically_derived]
195+ LL - #![automatically_derived]
196+ LL + #[automatically_derived]
191197 |
192198
193199error[E0518]: attribute should be applied to function or closure
0 commit comments