@@ -53,8 +53,19 @@ LL | priv_trait::mac!();
53
53
|
54
54
= note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
55
55
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
+
56
67
error: trait `PrivTr` is private
57
- --> $DIR/associated-item-privacy-trait.rs:26 :34
68
+ --> $DIR/associated-item-privacy-trait.rs:27 :34
58
69
|
59
70
LL | pub trait InSignatureTr: PrivTr {}
60
71
| ^^^^^^ private trait
@@ -65,7 +76,7 @@ LL | priv_trait::mac!();
65
76
= note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
66
77
67
78
error: trait `PrivTr` is private
68
- --> $DIR/associated-item-privacy-trait.rs:28 :14
79
+ --> $DIR/associated-item-privacy-trait.rs:29 :14
69
80
|
70
81
LL | impl PrivTr for u8 {}
71
82
| ^^^^^^ private trait
@@ -76,7 +87,7 @@ LL | priv_trait::mac!();
76
87
= note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
77
88
78
89
error: type `priv_signature::Priv` is private
79
- --> $DIR/associated-item-privacy-trait.rs:45 :21
90
+ --> $DIR/associated-item-privacy-trait.rs:46 :21
80
91
|
81
92
LL | let value = <Pub as PubTr>::method;
82
93
| ^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -87,7 +98,7 @@ LL | priv_signature::mac!();
87
98
= note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
88
99
89
100
error: type `priv_signature::Priv` is private
90
- --> $DIR/associated-item-privacy-trait.rs:47 :9
101
+ --> $DIR/associated-item-privacy-trait.rs:48 :9
91
102
|
92
103
LL | value;
93
104
| ^^^^^ private type
@@ -98,7 +109,7 @@ LL | priv_signature::mac!();
98
109
= note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
99
110
100
111
error: type `priv_signature::Priv` is private
101
- --> $DIR/associated-item-privacy-trait.rs:49 :13
112
+ --> $DIR/associated-item-privacy-trait.rs:50 :13
102
113
|
103
114
LL | Pub.method(loop {});
104
115
| ^^^^^^ private type
@@ -109,7 +120,7 @@ LL | priv_signature::mac!();
109
120
= note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
110
121
111
122
error: type `priv_substs::Priv` is private
112
- --> $DIR/associated-item-privacy-trait.rs:66 :21
123
+ --> $DIR/associated-item-privacy-trait.rs:67 :21
113
124
|
114
125
LL | let value = <Pub as PubTr>::method::<Priv>;
115
126
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -120,7 +131,7 @@ LL | priv_substs::mac!();
120
131
= note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
121
132
122
133
error: type `priv_substs::Priv` is private
123
- --> $DIR/associated-item-privacy-trait.rs:68 :9
134
+ --> $DIR/associated-item-privacy-trait.rs:69 :9
124
135
|
125
136
LL | value;
126
137
| ^^^^^ private type
@@ -131,7 +142,7 @@ LL | priv_substs::mac!();
131
142
= note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
132
143
133
144
error: type `priv_substs::Priv` is private
134
- --> $DIR/associated-item-privacy-trait.rs:70 :9
145
+ --> $DIR/associated-item-privacy-trait.rs:71 :9
135
146
|
136
147
LL | Pub.method::<Priv>();
137
148
| ^^^^^^^^^^^^^^^^^^^^ private type
@@ -142,7 +153,7 @@ LL | priv_substs::mac!();
142
153
= note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
143
154
144
155
error: 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
146
157
|
147
158
LL | let value = <Pub as PubTr>::method;
148
159
| ^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -153,7 +164,7 @@ LL | priv_parent_substs::mac!();
153
164
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
154
165
155
166
error: 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
157
168
|
158
169
LL | value;
159
170
| ^^^^^ private type
@@ -164,7 +175,7 @@ LL | priv_parent_substs::mac!();
164
175
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
165
176
166
177
error: 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
168
179
|
169
180
LL | let value = <Pub as PubTr<_>>::method;
170
181
| ^^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -175,7 +186,7 @@ LL | priv_parent_substs::mac!();
175
186
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
176
187
177
188
error: 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
179
190
|
180
191
LL | value;
181
192
| ^^^^^ private type
@@ -186,7 +197,7 @@ LL | priv_parent_substs::mac!();
186
197
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
187
198
188
199
error: 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
190
201
|
191
202
LL | Pub.method();
192
203
| ^^^^^^^^^^^^ private type
@@ -197,7 +208,7 @@ LL | priv_parent_substs::mac!();
197
208
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
198
209
199
210
error: 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
201
212
|
202
213
LL | let value = <Priv as PubTr<_>>::method;
203
214
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -208,7 +219,7 @@ LL | priv_parent_substs::mac!();
208
219
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
209
220
210
221
error: 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
212
223
|
213
224
LL | value;
214
225
| ^^^^^ private type
@@ -219,7 +230,7 @@ LL | priv_parent_substs::mac!();
219
230
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
220
231
221
232
error: 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
223
234
|
224
235
LL | Priv.method();
225
236
| ^^^^^^^^^^^^^ private type
@@ -230,7 +241,7 @@ LL | priv_parent_substs::mac!();
230
241
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
231
242
232
243
error: 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
234
245
|
235
246
LL | <Pub as PubTr>::CONST;
236
247
| ^^^^^^^^^^^^^^^^^^^^^ private type
@@ -241,7 +252,7 @@ LL | priv_parent_substs::mac!();
241
252
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
242
253
243
254
error: 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
245
256
|
246
257
LL | <Pub as PubTr<_>>::CONST;
247
258
| ^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -252,7 +263,7 @@ LL | priv_parent_substs::mac!();
252
263
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
253
264
254
265
error: 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
256
267
|
257
268
LL | <Priv as PubTr<_>>::CONST;
258
269
| ^^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -263,7 +274,7 @@ LL | priv_parent_substs::mac!();
263
274
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
264
275
265
276
error: 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
267
278
|
268
279
LL | let _: <Pub as PubTr<_>>::AssocTy;
269
280
| ^ private type
@@ -274,7 +285,7 @@ LL | priv_parent_substs::mac!();
274
285
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
275
286
276
287
error: 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
278
289
|
279
290
LL | let _: <Priv as PubTr<_>>::AssocTy;
280
291
| ^^^^ private type
@@ -285,7 +296,7 @@ LL | priv_parent_substs::mac!();
285
296
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
286
297
287
298
error: 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
289
300
|
290
301
LL | pub type InSignatureTy1 = <Pub as PubTr>::AssocTy;
291
302
| ^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -296,7 +307,7 @@ LL | priv_parent_substs::mac!();
296
307
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
297
308
298
309
error: 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
300
311
|
301
312
LL | pub type InSignatureTy2 = <Priv as PubTr<Pub>>::AssocTy;
302
313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
@@ -307,7 +318,7 @@ LL | priv_parent_substs::mac!();
307
318
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
308
319
309
320
error: 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
311
322
|
312
323
LL | impl PubTr for u8 {}
313
324
| ^^^^^ private type
@@ -317,5 +328,5 @@ LL | priv_parent_substs::mac!();
317
328
|
318
329
= note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
319
330
320
- error: aborting due to 29 previous errors
331
+ error: aborting due to 30 previous errors
321
332
0 commit comments