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