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