]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/collapse-debuginfo-invalid.stderr
Rollup merge of #107761 - oli-obk:miri_🪵, r=TaKO8Ki
[rust.git] / tests / ui / attributes / collapse-debuginfo-invalid.stderr
1 error: `collapse_debuginfo` attribute should be applied to macro definitions
2   --> $DIR/collapse-debuginfo-invalid.rs:8:1
3    |
4 LL | #[collapse_debuginfo]
5    | ^^^^^^^^^^^^^^^^^^^^^
6 LL |
7 LL | extern crate std;
8    | ----------------- not a macro definition
9
10 error: `collapse_debuginfo` attribute should be applied to macro definitions
11   --> $DIR/collapse-debuginfo-invalid.rs:12:1
12    |
13 LL | #[collapse_debuginfo]
14    | ^^^^^^^^^^^^^^^^^^^^^
15 LL |
16 LL | use std::collections::HashMap;
17    | ------------------------------ not a macro definition
18
19 error: `collapse_debuginfo` attribute should be applied to macro definitions
20   --> $DIR/collapse-debuginfo-invalid.rs:16:1
21    |
22 LL | #[collapse_debuginfo]
23    | ^^^^^^^^^^^^^^^^^^^^^
24 LL |
25 LL | static FOO: u32 = 3;
26    | -------------------- not a macro definition
27
28 error: `collapse_debuginfo` attribute should be applied to macro definitions
29   --> $DIR/collapse-debuginfo-invalid.rs:20:1
30    |
31 LL | #[collapse_debuginfo]
32    | ^^^^^^^^^^^^^^^^^^^^^
33 LL |
34 LL | const BAR: u32 = 3;
35    | ------------------- not a macro definition
36
37 error: `collapse_debuginfo` attribute should be applied to macro definitions
38   --> $DIR/collapse-debuginfo-invalid.rs:24:1
39    |
40 LL |   #[collapse_debuginfo]
41    |   ^^^^^^^^^^^^^^^^^^^^^
42 LL |
43 LL | / fn foo() {
44 LL | |     let _ = #[collapse_debuginfo] || { };
45 LL | |
46 LL | |     #[collapse_debuginfo]
47 ...  |
48 LL | |     }
49 LL | | }
50    | |_- not a macro definition
51
52 error: `collapse_debuginfo` attribute should be applied to macro definitions
53   --> $DIR/collapse-debuginfo-invalid.rs:27:13
54    |
55 LL |     let _ = #[collapse_debuginfo] || { };
56    |             ^^^^^^^^^^^^^^^^^^^^^ ------ not a macro definition
57
58 error: `collapse_debuginfo` attribute should be applied to macro definitions
59   --> $DIR/collapse-debuginfo-invalid.rs:29:5
60    |
61 LL |     #[collapse_debuginfo]
62    |     ^^^^^^^^^^^^^^^^^^^^^
63 LL |
64 LL |     let _ = 3;
65    |     ---------- not a macro definition
66
67 error: `collapse_debuginfo` attribute should be applied to macro definitions
68   --> $DIR/collapse-debuginfo-invalid.rs:32:13
69    |
70 LL |     let _ = #[collapse_debuginfo] 3;
71    |             ^^^^^^^^^^^^^^^^^^^^^ - not a macro definition
72
73 error: `collapse_debuginfo` attribute should be applied to macro definitions
74   --> $DIR/collapse-debuginfo-invalid.rs:35:9
75    |
76 LL |         #[collapse_debuginfo]
77    |         ^^^^^^^^^^^^^^^^^^^^^
78 LL |
79 LL |         _ => (),
80    |         ------- not a macro definition
81
82 error: `collapse_debuginfo` attribute should be applied to macro definitions
83   --> $DIR/collapse-debuginfo-invalid.rs:41:1
84    |
85 LL |   #[collapse_debuginfo]
86    |   ^^^^^^^^^^^^^^^^^^^^^
87 LL |
88 LL | / mod bar {
89 LL | | }
90    | |_- not a macro definition
91
92 error: `collapse_debuginfo` attribute should be applied to macro definitions
93   --> $DIR/collapse-debuginfo-invalid.rs:46:1
94    |
95 LL | #[collapse_debuginfo]
96    | ^^^^^^^^^^^^^^^^^^^^^
97 LL |
98 LL | type Map = HashMap<u32, u32>;
99    | ----------------------------- not a macro definition
100
101 error: `collapse_debuginfo` attribute should be applied to macro definitions
102   --> $DIR/collapse-debuginfo-invalid.rs:50:1
103    |
104 LL |   #[collapse_debuginfo]
105    |   ^^^^^^^^^^^^^^^^^^^^^
106 LL |
107 LL | / enum Foo {
108 LL | |     #[collapse_debuginfo]
109 LL | |
110 LL | |     Variant,
111 LL | | }
112    | |_- not a macro definition
113
114 error: `collapse_debuginfo` attribute should be applied to macro definitions
115   --> $DIR/collapse-debuginfo-invalid.rs:53:5
116    |
117 LL |     #[collapse_debuginfo]
118    |     ^^^^^^^^^^^^^^^^^^^^^
119 LL |
120 LL |     Variant,
121    |     ------- not a macro definition
122
123 error: `collapse_debuginfo` attribute should be applied to macro definitions
124   --> $DIR/collapse-debuginfo-invalid.rs:58:1
125    |
126 LL |   #[collapse_debuginfo]
127    |   ^^^^^^^^^^^^^^^^^^^^^
128 LL |
129 LL | / struct Bar {
130 LL | |     #[collapse_debuginfo]
131 LL | |
132 LL | |     field: u32,
133 LL | | }
134    | |_- not a macro definition
135
136 error: `collapse_debuginfo` attribute should be applied to macro definitions
137   --> $DIR/collapse-debuginfo-invalid.rs:61:5
138    |
139 LL |     #[collapse_debuginfo]
140    |     ^^^^^^^^^^^^^^^^^^^^^
141 LL |
142 LL |     field: u32,
143    |     ---------- not a macro definition
144
145 error: `collapse_debuginfo` attribute should be applied to macro definitions
146   --> $DIR/collapse-debuginfo-invalid.rs:66:1
147    |
148 LL |   #[collapse_debuginfo]
149    |   ^^^^^^^^^^^^^^^^^^^^^
150 LL |
151 LL | / union Qux {
152 LL | |     a: u32,
153 LL | |     b: u16
154 LL | | }
155    | |_- not a macro definition
156
157 error: `collapse_debuginfo` attribute should be applied to macro definitions
158   --> $DIR/collapse-debuginfo-invalid.rs:73:1
159    |
160 LL |   #[collapse_debuginfo]
161    |   ^^^^^^^^^^^^^^^^^^^^^
162 LL |
163 LL | / trait Foobar {
164 LL | |     #[collapse_debuginfo]
165 LL | |
166 LL | |     type Bar;
167 LL | | }
168    | |_- not a macro definition
169
170 error: `collapse_debuginfo` attribute should be applied to macro definitions
171   --> $DIR/collapse-debuginfo-invalid.rs:81:1
172    |
173 LL | #[collapse_debuginfo]
174    | ^^^^^^^^^^^^^^^^^^^^^
175 LL |
176 LL | type AFoobar = impl Foobar;
177    | --------------------------- not a macro definition
178
179 error: `collapse_debuginfo` attribute should be applied to macro definitions
180   --> $DIR/collapse-debuginfo-invalid.rs:93:1
181    |
182 LL |   #[collapse_debuginfo]
183    |   ^^^^^^^^^^^^^^^^^^^^^
184 LL |
185 LL | / impl Bar {
186 LL | |     #[collapse_debuginfo]
187 LL | |
188 LL | |     const FOO: u32 = 3;
189 ...  |
190 LL | |     fn bar(&self) {}
191 LL | | }
192    | |_- not a macro definition
193
194 error: `collapse_debuginfo` attribute should be applied to macro definitions
195   --> $DIR/collapse-debuginfo-invalid.rs:76:5
196    |
197 LL |     #[collapse_debuginfo]
198    |     ^^^^^^^^^^^^^^^^^^^^^
199 LL |
200 LL |     type Bar;
201    |     --------- not a macro definition
202
203 error: `collapse_debuginfo` attribute should be applied to macro definitions
204   --> $DIR/collapse-debuginfo-invalid.rs:96:5
205    |
206 LL |     #[collapse_debuginfo]
207    |     ^^^^^^^^^^^^^^^^^^^^^
208 LL |
209 LL |     const FOO: u32 = 3;
210    |     ------------------- not a macro definition
211
212 error: `collapse_debuginfo` attribute should be applied to macro definitions
213   --> $DIR/collapse-debuginfo-invalid.rs:100:5
214    |
215 LL |     #[collapse_debuginfo]
216    |     ^^^^^^^^^^^^^^^^^^^^^
217 LL |
218 LL |     fn bar(&self) {}
219    |     ---------------- not a macro definition
220
221 error: aborting due to 22 previous errors
222