1 error: type `for<'r> fn(&'r priv_trait::Pub) {<priv_trait::Pub as PrivTr>::method}` is private
2 --> $DIR/associated-item-privacy-trait.rs:17:21
4 LL | let value = <Pub as PrivTr>::method;
5 | ^^^^^^^^^^^^^^^^^^^^^^^ private type
7 LL | priv_trait::mac!();
8 | ------------------- in this macro invocation
10 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
12 error: type `for<'r> fn(&'r priv_trait::Pub) {<priv_trait::Pub as PrivTr>::method}` is private
13 --> $DIR/associated-item-privacy-trait.rs:19:9
18 LL | priv_trait::mac!();
19 | ------------------- in this macro invocation
21 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
23 error: type `for<'r> fn(&'r Self) {<Self as PrivTr>::method}` is private
24 --> $DIR/associated-item-privacy-trait.rs:21:13
29 LL | priv_trait::mac!();
30 | ------------------- in this macro invocation
32 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
34 error: associated constant `<Pub as PrivTr>::CONST` is private
35 --> $DIR/associated-item-privacy-trait.rs:23:9
37 LL | <Pub as PrivTr>::CONST;
38 | ^^^^^^^^^^^^^^^^^^^^^^ private associated constant
40 LL | priv_trait::mac!();
41 | ------------------- in this macro invocation
43 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
45 error: associated type `<Pub as PrivTr>::AssocTy` is private
46 --> $DIR/associated-item-privacy-trait.rs:25:16
48 LL | let _: <Pub as PrivTr>::AssocTy;
49 | ^^^^^^^^^^^^^^^^^^^^^^^^ private associated type
51 LL | priv_trait::mac!();
52 | ------------------- in this macro invocation
54 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
56 error: trait `PrivTr` is private
57 --> $DIR/associated-item-privacy-trait.rs:27:34
59 LL | pub type InSignatureTy = <Pub as PrivTr>::AssocTy;
60 | ^^^^^^^^^^^^^^^^^^^^^^^^ private trait
62 LL | priv_trait::mac!();
63 | ------------------- in this macro invocation
65 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
67 error: trait `PrivTr` is private
68 --> $DIR/associated-item-privacy-trait.rs:29:34
70 LL | pub trait InSignatureTr: PrivTr {}
71 | ^^^^^^ private trait
73 LL | priv_trait::mac!();
74 | ------------------- in this macro invocation
76 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
78 error: trait `PrivTr` is private
79 --> $DIR/associated-item-privacy-trait.rs:31:14
81 LL | impl PrivTr for u8 {}
82 | ^^^^^^ private trait
84 LL | priv_trait::mac!();
85 | ------------------- in this macro invocation
87 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
89 error: type `priv_signature::Priv` is private
90 --> $DIR/associated-item-privacy-trait.rs:48:21
92 LL | let value = <Pub as PubTr>::method;
93 | ^^^^^^^^^^^^^^^^^^^^^^ private type
95 LL | priv_signature::mac!();
96 | ----------------------- in this macro invocation
98 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
100 error: type `priv_signature::Priv` is private
101 --> $DIR/associated-item-privacy-trait.rs:50:9
106 LL | priv_signature::mac!();
107 | ----------------------- in this macro invocation
109 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
111 error: type `priv_signature::Priv` is private
112 --> $DIR/associated-item-privacy-trait.rs:52:13
114 LL | Pub.method(loop {});
115 | ^^^^^^ private type
117 LL | priv_signature::mac!();
118 | ----------------------- in this macro invocation
120 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
122 error: type `priv_substs::Priv` is private
123 --> $DIR/associated-item-privacy-trait.rs:69:21
125 LL | let value = <Pub as PubTr>::method::<Priv>;
126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
128 LL | priv_substs::mac!();
129 | -------------------- in this macro invocation
131 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
133 error: type `priv_substs::Priv` is private
134 --> $DIR/associated-item-privacy-trait.rs:71:9
139 LL | priv_substs::mac!();
140 | -------------------- in this macro invocation
142 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
144 error: type `priv_substs::Priv` is private
145 --> $DIR/associated-item-privacy-trait.rs:73:9
147 LL | Pub.method::<Priv>();
148 | ^^^^^^^^^^^^^^^^^^^^ private type
150 LL | priv_substs::mac!();
151 | -------------------- in this macro invocation
153 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
155 error: type `priv_parent_substs::Priv` is private
156 --> $DIR/associated-item-privacy-trait.rs:93:21
158 LL | let value = <Pub as PubTr>::method;
159 | ^^^^^^^^^^^^^^^^^^^^^^ private type
161 LL | priv_parent_substs::mac!();
162 | --------------------------- in this macro invocation
164 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
166 error: type `priv_parent_substs::Priv` is private
167 --> $DIR/associated-item-privacy-trait.rs:95:9
172 LL | priv_parent_substs::mac!();
173 | --------------------------- in this macro invocation
175 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
177 error: type `priv_parent_substs::Priv` is private
178 --> $DIR/associated-item-privacy-trait.rs:97:21
180 LL | let value = <Pub as PubTr<_>>::method;
181 | ^^^^^^^^^^^^^^^^^^^^^^^^^ private type
183 LL | priv_parent_substs::mac!();
184 | --------------------------- in this macro invocation
186 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
188 error: type `priv_parent_substs::Priv` is private
189 --> $DIR/associated-item-privacy-trait.rs:99:9
194 LL | priv_parent_substs::mac!();
195 | --------------------------- in this macro invocation
197 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
199 error: type `priv_parent_substs::Priv` is private
200 --> $DIR/associated-item-privacy-trait.rs:101:9
203 | ^^^^^^^^^^^^ private type
205 LL | priv_parent_substs::mac!();
206 | --------------------------- in this macro invocation
208 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
210 error: type `priv_parent_substs::Priv` is private
211 --> $DIR/associated-item-privacy-trait.rs:104:21
213 LL | let value = <Priv as PubTr<_>>::method;
214 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
216 LL | priv_parent_substs::mac!();
217 | --------------------------- in this macro invocation
219 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
221 error: type `priv_parent_substs::Priv` is private
222 --> $DIR/associated-item-privacy-trait.rs:106:9
227 LL | priv_parent_substs::mac!();
228 | --------------------------- in this macro invocation
230 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
232 error: type `priv_parent_substs::Priv` is private
233 --> $DIR/associated-item-privacy-trait.rs:108:9
236 | ^^^^^^^^^^^^^ private type
238 LL | priv_parent_substs::mac!();
239 | --------------------------- in this macro invocation
241 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
243 error: type `priv_parent_substs::Priv` is private
244 --> $DIR/associated-item-privacy-trait.rs:111:9
246 LL | <Pub as PubTr>::CONST;
247 | ^^^^^^^^^^^^^^^^^^^^^ private type
249 LL | priv_parent_substs::mac!();
250 | --------------------------- in this macro invocation
252 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
254 error: type `priv_parent_substs::Priv` is private
255 --> $DIR/associated-item-privacy-trait.rs:113:9
257 LL | <Pub as PubTr<_>>::CONST;
258 | ^^^^^^^^^^^^^^^^^^^^^^^^ private type
260 LL | priv_parent_substs::mac!();
261 | --------------------------- in this macro invocation
263 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
265 error: type `priv_parent_substs::Priv` is private
266 --> $DIR/associated-item-privacy-trait.rs:115:9
268 LL | <Priv as PubTr<_>>::CONST;
269 | ^^^^^^^^^^^^^^^^^^^^^^^^^ private type
271 LL | priv_parent_substs::mac!();
272 | --------------------------- in this macro invocation
274 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
276 error: type `priv_parent_substs::Priv` is private
277 --> $DIR/associated-item-privacy-trait.rs:119:30
279 LL | let _: <Pub as PubTr<_>>::AssocTy;
282 LL | priv_parent_substs::mac!();
283 | --------------------------- in this macro invocation
285 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
287 error: type `priv_parent_substs::Priv` is private
288 --> $DIR/associated-item-privacy-trait.rs:121:17
290 LL | let _: <Priv as PubTr<_>>::AssocTy;
293 LL | priv_parent_substs::mac!();
294 | --------------------------- in this macro invocation
296 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
298 error: type `priv_parent_substs::Priv` is private
299 --> $DIR/associated-item-privacy-trait.rs:124:35
301 LL | pub type InSignatureTy1 = <Pub as PubTr>::AssocTy;
302 | ^^^^^^^^^^^^^^^^^^^^^^^ private type
304 LL | priv_parent_substs::mac!();
305 | --------------------------- in this macro invocation
307 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
309 error: type `priv_parent_substs::Priv` is private
310 --> $DIR/associated-item-privacy-trait.rs:126:35
312 LL | pub type InSignatureTy2 = <Priv as PubTr<Pub>>::AssocTy;
313 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
315 LL | priv_parent_substs::mac!();
316 | --------------------------- in this macro invocation
318 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
320 error: type `priv_parent_substs::Priv` is private
321 --> $DIR/associated-item-privacy-trait.rs:128:14
323 LL | impl PubTr for u8 {}
326 LL | priv_parent_substs::mac!();
327 | --------------------------- in this macro invocation
329 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
331 error: aborting due to 30 previous errors