@@ -53,8 +53,19 @@ LL | priv_trait::mac!();
5353 |
5454 = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
5555
56+ error: associated type `PrivTr::AssocTy` is private
57+ --> $DIR/associated-item-privacy-trait.rs:25:34
58+ |
59+ LL | pub type InSignatureTy = <Pub as PrivTr>::AssocTy;
60+ | ^^^^^^^^^^^^^^^^^^^^^^^^ private associated type
61+ ...
62+ LL | priv_trait::mac!();
63+ | ------------------ in this macro invocation
64+ |
65+ = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
66+
5667error: trait `PrivTr` is private
57- --> $DIR/associated-item-privacy-trait.rs:26 :34
68+ --> $DIR/associated-item-privacy-trait.rs:27 :34
5869 |
5970LL | pub trait InSignatureTr: PrivTr {}
6071 | ^^^^^^ private trait
@@ -65,7 +76,7 @@ LL | priv_trait::mac!();
6576 = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
6677
6778error: trait `PrivTr` is private
68- --> $DIR/associated-item-privacy-trait.rs:28 :14
79+ --> $DIR/associated-item-privacy-trait.rs:29 :14
6980 |
7081LL | impl PrivTr for u8 {}
7182 | ^^^^^^ private trait
@@ -76,7 +87,7 @@ LL | priv_trait::mac!();
7687 = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
7788
7889error: type `priv_signature::Priv` is private
79- --> $DIR/associated-item-privacy-trait.rs:45 :21
90+ --> $DIR/associated-item-privacy-trait.rs:46 :21
8091 |
8192LL | let value = <Pub as PubTr>::method;
8293 | ^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -87,7 +98,7 @@ LL | priv_signature::mac!();
8798 = note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
8899
89100error: type `priv_signature::Priv` is private
90- --> $DIR/associated-item-privacy-trait.rs:47 :9
101+ --> $DIR/associated-item-privacy-trait.rs:48 :9
91102 |
92103LL | value;
93104 | ^^^^^ private type
@@ -98,7 +109,7 @@ LL | priv_signature::mac!();
98109 = note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
99110
100111error: type `priv_signature::Priv` is private
101- --> $DIR/associated-item-privacy-trait.rs:49 :13
112+ --> $DIR/associated-item-privacy-trait.rs:50 :13
102113 |
103114LL | Pub.method(loop {});
104115 | ^^^^^^ private type
@@ -109,7 +120,7 @@ LL | priv_signature::mac!();
109120 = note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
110121
111122error: type `priv_substs::Priv` is private
112- --> $DIR/associated-item-privacy-trait.rs:66 :21
123+ --> $DIR/associated-item-privacy-trait.rs:67 :21
113124 |
114125LL | let value = <Pub as PubTr>::method::<Priv>;
115126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -120,7 +131,7 @@ LL | priv_substs::mac!();
120131 = note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
121132
122133error: type `priv_substs::Priv` is private
123- --> $DIR/associated-item-privacy-trait.rs:68 :9
134+ --> $DIR/associated-item-privacy-trait.rs:69 :9
124135 |
125136LL | value;
126137 | ^^^^^ private type
@@ -131,7 +142,7 @@ LL | priv_substs::mac!();
131142 = note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
132143
133144error: type `priv_substs::Priv` is private
134- --> $DIR/associated-item-privacy-trait.rs:70 :9
145+ --> $DIR/associated-item-privacy-trait.rs:71 :9
135146 |
136147LL | Pub.method::<Priv>();
137148 | ^^^^^^^^^^^^^^^^^^^^ private type
@@ -142,7 +153,7 @@ LL | priv_substs::mac!();
142153 = note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
143154
144155error: type `priv_parent_substs::Priv` is private
145- --> $DIR/associated-item-privacy-trait.rs:90 :21
156+ --> $DIR/associated-item-privacy-trait.rs:91 :21
146157 |
147158LL | let value = <Pub as PubTr>::method;
148159 | ^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -153,7 +164,7 @@ LL | priv_parent_substs::mac!();
153164 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
154165
155166error: type `priv_parent_substs::Priv` is private
156- --> $DIR/associated-item-privacy-trait.rs:92 :9
167+ --> $DIR/associated-item-privacy-trait.rs:93 :9
157168 |
158169LL | value;
159170 | ^^^^^ private type
@@ -164,7 +175,7 @@ LL | priv_parent_substs::mac!();
164175 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
165176
166177error: type `priv_parent_substs::Priv` is private
167- --> $DIR/associated-item-privacy-trait.rs:94 :21
178+ --> $DIR/associated-item-privacy-trait.rs:95 :21
168179 |
169180LL | let value = <Pub as PubTr<_>>::method;
170181 | ^^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -175,7 +186,7 @@ LL | priv_parent_substs::mac!();
175186 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
176187
177188error: type `priv_parent_substs::Priv` is private
178- --> $DIR/associated-item-privacy-trait.rs:96 :9
189+ --> $DIR/associated-item-privacy-trait.rs:97 :9
179190 |
180191LL | value;
181192 | ^^^^^ private type
@@ -186,7 +197,7 @@ LL | priv_parent_substs::mac!();
186197 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
187198
188199error: type `priv_parent_substs::Priv` is private
189- --> $DIR/associated-item-privacy-trait.rs:98 :9
200+ --> $DIR/associated-item-privacy-trait.rs:99 :9
190201 |
191202LL | Pub.method();
192203 | ^^^^^^^^^^^^ private type
@@ -197,7 +208,7 @@ LL | priv_parent_substs::mac!();
197208 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
198209
199210error: type `priv_parent_substs::Priv` is private
200- --> $DIR/associated-item-privacy-trait.rs:101 :21
211+ --> $DIR/associated-item-privacy-trait.rs:102 :21
201212 |
202213LL | let value = <Priv as PubTr<_>>::method;
203214 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -208,7 +219,7 @@ LL | priv_parent_substs::mac!();
208219 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
209220
210221error: type `priv_parent_substs::Priv` is private
211- --> $DIR/associated-item-privacy-trait.rs:103 :9
222+ --> $DIR/associated-item-privacy-trait.rs:104 :9
212223 |
213224LL | value;
214225 | ^^^^^ private type
@@ -219,7 +230,7 @@ LL | priv_parent_substs::mac!();
219230 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
220231
221232error: type `priv_parent_substs::Priv` is private
222- --> $DIR/associated-item-privacy-trait.rs:105 :9
233+ --> $DIR/associated-item-privacy-trait.rs:106 :9
223234 |
224235LL | Priv.method();
225236 | ^^^^^^^^^^^^^ private type
@@ -230,7 +241,7 @@ LL | priv_parent_substs::mac!();
230241 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
231242
232243error: type `priv_parent_substs::Priv` is private
233- --> $DIR/associated-item-privacy-trait.rs:108 :9
244+ --> $DIR/associated-item-privacy-trait.rs:109 :9
234245 |
235246LL | <Pub as PubTr>::CONST;
236247 | ^^^^^^^^^^^^^^^^^^^^^ private type
@@ -241,7 +252,7 @@ LL | priv_parent_substs::mac!();
241252 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
242253
243254error: type `priv_parent_substs::Priv` is private
244- --> $DIR/associated-item-privacy-trait.rs:110 :9
255+ --> $DIR/associated-item-privacy-trait.rs:111 :9
245256 |
246257LL | <Pub as PubTr<_>>::CONST;
247258 | ^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -252,7 +263,7 @@ LL | priv_parent_substs::mac!();
252263 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
253264
254265error: type `priv_parent_substs::Priv` is private
255- --> $DIR/associated-item-privacy-trait.rs:112 :9
266+ --> $DIR/associated-item-privacy-trait.rs:113 :9
256267 |
257268LL | <Priv as PubTr<_>>::CONST;
258269 | ^^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -263,7 +274,7 @@ LL | priv_parent_substs::mac!();
263274 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
264275
265276error: type `priv_parent_substs::Priv` is private
266- --> $DIR/associated-item-privacy-trait.rs:116 :30
277+ --> $DIR/associated-item-privacy-trait.rs:117 :30
267278 |
268279LL | let _: <Pub as PubTr<_>>::AssocTy;
269280 | ^ private type
@@ -274,7 +285,7 @@ LL | priv_parent_substs::mac!();
274285 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
275286
276287error: type `priv_parent_substs::Priv` is private
277- --> $DIR/associated-item-privacy-trait.rs:118 :17
288+ --> $DIR/associated-item-privacy-trait.rs:119 :17
278289 |
279290LL | let _: <Priv as PubTr<_>>::AssocTy;
280291 | ^^^^ private type
@@ -285,7 +296,7 @@ LL | priv_parent_substs::mac!();
285296 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
286297
287298error: type `priv_parent_substs::Priv` is private
288- --> $DIR/associated-item-privacy-trait.rs:121 :35
299+ --> $DIR/associated-item-privacy-trait.rs:122 :35
289300 |
290301LL | pub type InSignatureTy1 = <Pub as PubTr>::AssocTy;
291302 | ^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -296,7 +307,7 @@ LL | priv_parent_substs::mac!();
296307 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
297308
298309error: type `priv_parent_substs::Priv` is private
299- --> $DIR/associated-item-privacy-trait.rs:123 :35
310+ --> $DIR/associated-item-privacy-trait.rs:124 :35
300311 |
301312LL | pub type InSignatureTy2 = <Priv as PubTr<Pub>>::AssocTy;
302313 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -307,7 +318,7 @@ LL | priv_parent_substs::mac!();
307318 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
308319
309320error: type `priv_parent_substs::Priv` is private
310- --> $DIR/associated-item-privacy-trait.rs:125 :14
321+ --> $DIR/associated-item-privacy-trait.rs:126 :14
311322 |
312323LL | impl PubTr for u8 {}
313324 | ^^^^^ private type
@@ -317,5 +328,5 @@ LL | priv_parent_substs::mac!();
317328 |
318329 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
319330
320- error: aborting due to 29 previous errors
331+ error: aborting due to 30 previous errors
321332
0 commit comments