]> git.proxmox.com Git - rustc.git/blob - src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / feature-gates / issue-43106-gating-of-builtin-attrs-error.stderr
1 error[E0658]: the `#[rustc_main]` attribute is used internally to specify test entry point function
2 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:14:1
3 |
4 LL | #![rustc_main]
5 | ^^^^^^^^^^^^^^
6 |
7 = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable
8
9 error: attribute must be of the form `#[inline]` or `#[inline(always|never)]`
10 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:40:5
11 |
12 LL | #[inline = "2100"] fn f() { }
13 | ^^^^^^^^^^^^^^^^^^
14 |
15 = note: `#[deny(ill_formed_attribute_input)]` on by default
16 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
17 = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
18
19 error: `start` attribute can only be used on functions
20 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:119:1
21 |
22 LL | #[start]
23 | ^^^^^^^^
24
25 error: `start` attribute can only be used on functions
26 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:122:17
27 |
28 LL | mod inner { #![start] }
29 | ^^^^^^^^^
30
31 error: `start` attribute can only be used on functions
32 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:127:5
33 |
34 LL | #[start] struct S;
35 | ^^^^^^^^
36
37 error: `start` attribute can only be used on functions
38 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:130:5
39 |
40 LL | #[start] type T = S;
41 | ^^^^^^^^
42
43 error: `start` attribute can only be used on functions
44 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:133:5
45 |
46 LL | #[start] impl S { }
47 | ^^^^^^^^
48
49 error[E0518]: attribute should be applied to function or closure
50 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:31:1
51 |
52 LL | #[inline]
53 | ^^^^^^^^^
54 LL |
55 LL | / mod inline {
56 LL | |
57 LL | |
58 LL | | mod inner { #![inline] }
59 ... |
60 LL | |
61 LL | | }
62 | |_- not a function or closure
63
64 error: attribute should be applied to an `extern crate` item
65 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:59:1
66 |
67 LL | #[no_link]
68 | ^^^^^^^^^^
69 LL |
70 LL | / mod no_link {
71 LL | |
72 LL | |
73 LL | | mod inner { #![no_link] }
74 ... |
75 LL | |
76 LL | | }
77 | |_- not an `extern crate` item
78
79 error: attribute should be applied to a free function, impl method or static
80 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:85:1
81 |
82 LL | #[export_name = "2200"]
83 | ^^^^^^^^^^^^^^^^^^^^^^^
84 LL |
85 LL | / mod export_name {
86 LL | |
87 LL | |
88 LL | | mod inner { #![export_name="2200"] }
89 ... |
90 LL | | }
91 LL | | }
92 | |_- not a free function, impl method or static
93
94 error: attribute should be applied to an `extern crate` item
95 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:25:1
96 |
97 LL | #![no_link]
98 | ^^^^^^^^^^^
99
100 error: attribute should be applied to a free function, impl method or static
101 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:27:1
102 |
103 LL | #![export_name = "2200"]
104 | ^^^^^^^^^^^^^^^^^^^^^^^^
105
106 error[E0518]: attribute should be applied to function or closure
107 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:29:1
108 |
109 LL | #![inline]
110 | ^^^^^^^^^^
111
112 error: `macro_export` attribute cannot be used at crate level
113 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:12:1
114 |
115 LL | #![macro_export]
116 | ^^^^^^^^^^^^^^^^
117
118 error: `rustc_main` attribute cannot be used at crate level
119 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:14:1
120 |
121 LL | #![rustc_main]
122 | ^^^^^^^^^^^^^^
123
124 error: `start` attribute cannot be used at crate level
125 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:16:1
126 |
127 LL | #![start]
128 | ^^^^^^^^^
129
130 error: `repr` attribute cannot be used at crate level
131 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:18:1
132 |
133 LL | #![repr()]
134 | ^^^^^^^^^^
135
136 error: `path` attribute cannot be used at crate level
137 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:20:1
138 |
139 LL | #![path = "3800"]
140 | ^^^^^^^^^^^^^^^^^
141
142 error: `automatically_derived` attribute cannot be used at crate level
143 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:22:1
144 |
145 LL | #![automatically_derived]
146 | ^^^^^^^^^^^^^^^^^^^^^^^^^
147
148 error[E0518]: attribute should be applied to function or closure
149 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:36:17
150 |
151 LL | mod inner { #![inline] }
152 | ------------^^^^^^^^^^-- not a function or closure
153
154 error[E0518]: attribute should be applied to function or closure
155 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:46:5
156 |
157 LL | #[inline] struct S;
158 | ^^^^^^^^^ --------- not a function or closure
159
160 error[E0518]: attribute should be applied to function or closure
161 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:50:5
162 |
163 LL | #[inline] type T = S;
164 | ^^^^^^^^^ ----------- not a function or closure
165
166 error[E0518]: attribute should be applied to function or closure
167 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:54:5
168 |
169 LL | #[inline] impl S { }
170 | ^^^^^^^^^ ---------- not a function or closure
171
172 error: attribute should be applied to an `extern crate` item
173 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:64:17
174 |
175 LL | mod inner { #![no_link] }
176 | ------------^^^^^^^^^^^-- not an `extern crate` item
177
178 error: attribute should be applied to an `extern crate` item
179 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:68:5
180 |
181 LL | #[no_link] fn f() { }
182 | ^^^^^^^^^^ ---------- not an `extern crate` item
183
184 error: attribute should be applied to an `extern crate` item
185 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:72:5
186 |
187 LL | #[no_link] struct S;
188 | ^^^^^^^^^^ --------- not an `extern crate` item
189
190 error: attribute should be applied to an `extern crate` item
191 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:76:5
192 |
193 LL | #[no_link]type T = S;
194 | ^^^^^^^^^^----------- not an `extern crate` item
195
196 error: attribute should be applied to an `extern crate` item
197 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:80:5
198 |
199 LL | #[no_link] impl S { }
200 | ^^^^^^^^^^ ---------- not an `extern crate` item
201
202 error: attribute should be applied to a free function, impl method or static
203 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:90:17
204 |
205 LL | mod inner { #![export_name="2200"] }
206 | ------------^^^^^^^^^^^^^^^^^^^^^^-- not a free function, impl method or static
207
208 error: attribute should be applied to a free function, impl method or static
209 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:96:5
210 |
211 LL | #[export_name = "2200"] struct S;
212 | ^^^^^^^^^^^^^^^^^^^^^^^ --------- not a free function, impl method or static
213
214 error: attribute should be applied to a free function, impl method or static
215 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:100:5
216 |
217 LL | #[export_name = "2200"] type T = S;
218 | ^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a free function, impl method or static
219
220 error: attribute should be applied to a free function, impl method or static
221 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:104:5
222 |
223 LL | #[export_name = "2200"] impl S { }
224 | ^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a free function, impl method or static
225
226 error: attribute should be applied to a free function, impl method or static
227 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:109:9
228 |
229 LL | #[export_name = "2200"] fn foo();
230 | ^^^^^^^^^^^^^^^^^^^^^^^ --------- not a free function, impl method or static
231
232 error: attribute should be applied to a free function, impl method or static
233 --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:113:9
234 |
235 LL | #[export_name = "2200"] fn bar() {}
236 | ^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a free function, impl method or static
237
238 error: aborting due to 34 previous errors
239
240 Some errors have detailed explanations: E0518, E0658.
241 For more information about an error, try `rustc --explain E0518`.