fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
9.7 KiB317 linesraw
1error: type `for<'r> fn(&'r priv_trait::Pub) {<priv_trait::Pub as priv_trait::PrivTr>::method}` is private
2  --> $DIR/associated-item-privacy-trait.rs:17:21
3   |
4LL |         let value = <Pub as PrivTr>::method;
5   |                     ^^^^^^^^^^^^^^^^^^^^^^^
6...
7LL |     priv_trait::mac!();
8   |     ------------------- in this macro invocation
9
10error: type `for<'r> fn(&'r priv_trait::Pub) {<priv_trait::Pub as priv_trait::PrivTr>::method}` is private
11  --> $DIR/associated-item-privacy-trait.rs:19:9
12   |
13LL |         value;
14   |         ^^^^^
15...
16LL |     priv_trait::mac!();
17   |     ------------------- in this macro invocation
18
19error: type `for<'r> fn(&'r Self) {<Self as priv_trait::PrivTr>::method}` is private
20  --> $DIR/associated-item-privacy-trait.rs:21:13
21   |
22LL |         Pub.method();
23   |             ^^^^^^
24...
25LL |     priv_trait::mac!();
26   |     ------------------- in this macro invocation
27
28error: associated constant `PrivTr::CONST` is private
29  --> $DIR/associated-item-privacy-trait.rs:23:9
30   |
31LL |         <Pub as PrivTr>::CONST;
32   |         ^^^^^^^^^^^^^^^^^^^^^^
33...
34LL |     priv_trait::mac!();
35   |     ------------------- in this macro invocation
36
37error: trait `priv_trait::PrivTr` is private
38  --> $DIR/associated-item-privacy-trait.rs:25:13
39   |
40LL |         let _: <Pub as PrivTr>::AssocTy;
41   |             ^
42...
43LL |     priv_trait::mac!();
44   |     ------------------- in this macro invocation
45
46error: trait `priv_trait::PrivTr` is private
47  --> $DIR/associated-item-privacy-trait.rs:25:16
48   |
49LL |         let _: <Pub as PrivTr>::AssocTy;
50   |                ^^^^^^^^^^^^^^^^^^^^^^^^
51...
52LL |     priv_trait::mac!();
53   |     ------------------- in this macro invocation
54
55error: trait `priv_trait::PrivTr` is private
56  --> $DIR/associated-item-privacy-trait.rs:28:34
57   |
58LL |         pub type InSignatureTy = <Pub as PrivTr>::AssocTy;
59   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^
60...
61LL |     priv_trait::mac!();
62   |     ------------------- in this macro invocation
63
64error: trait `priv_trait::PrivTr` is private
65  --> $DIR/associated-item-privacy-trait.rs:30:34
66   |
67LL |         pub trait InSignatureTr: PrivTr {}
68   |                                  ^^^^^^
69...
70LL |     priv_trait::mac!();
71   |     ------------------- in this macro invocation
72
73error: trait `priv_trait::PrivTr` is private
74  --> $DIR/associated-item-privacy-trait.rs:32:14
75   |
76LL |         impl PrivTr for u8 {}
77   |              ^^^^^^
78...
79LL |     priv_trait::mac!();
80   |     ------------------- in this macro invocation
81
82error: type `priv_signature::Priv` is private
83  --> $DIR/associated-item-privacy-trait.rs:49:21
84   |
85LL |         let value = <Pub as PubTr>::method;
86   |                     ^^^^^^^^^^^^^^^^^^^^^^
87...
88LL |     priv_signature::mac!();
89   |     ----------------------- in this macro invocation
90
91error: type `priv_signature::Priv` is private
92  --> $DIR/associated-item-privacy-trait.rs:51:9
93   |
94LL |         value;
95   |         ^^^^^
96...
97LL |     priv_signature::mac!();
98   |     ----------------------- in this macro invocation
99
100error: type `priv_signature::Priv` is private
101  --> $DIR/associated-item-privacy-trait.rs:53:13
102   |
103LL |         Pub.method(loop {});
104   |             ^^^^^^
105...
106LL |     priv_signature::mac!();
107   |     ----------------------- in this macro invocation
108
109error: type `priv_substs::Priv` is private
110  --> $DIR/associated-item-privacy-trait.rs:70:21
111   |
112LL |         let value = <Pub as PubTr>::method::<Priv>;
113   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114...
115LL |     priv_substs::mac!();
116   |     -------------------- in this macro invocation
117
118error: type `priv_substs::Priv` is private
119  --> $DIR/associated-item-privacy-trait.rs:72:9
120   |
121LL |         value;
122   |         ^^^^^
123...
124LL |     priv_substs::mac!();
125   |     -------------------- in this macro invocation
126
127error: type `priv_substs::Priv` is private
128  --> $DIR/associated-item-privacy-trait.rs:74:9
129   |
130LL |         Pub.method::<Priv>();
131   |         ^^^^^^^^^^^^^^^^^^^^
132...
133LL |     priv_substs::mac!();
134   |     -------------------- in this macro invocation
135
136error: type `priv_parent_substs::Priv` is private
137  --> $DIR/associated-item-privacy-trait.rs:94:21
138   |
139LL |         let value = <Pub as PubTr>::method;
140   |                     ^^^^^^^^^^^^^^^^^^^^^^
141...
142LL |     priv_parent_substs::mac!();
143   |     --------------------------- in this macro invocation
144
145error: type `priv_parent_substs::Priv` is private
146  --> $DIR/associated-item-privacy-trait.rs:96:9
147   |
148LL |         value;
149   |         ^^^^^
150...
151LL |     priv_parent_substs::mac!();
152   |     --------------------------- in this macro invocation
153
154error: type `priv_parent_substs::Priv` is private
155  --> $DIR/associated-item-privacy-trait.rs:98:21
156   |
157LL |         let value = <Pub as PubTr<_>>::method;
158   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^
159...
160LL |     priv_parent_substs::mac!();
161   |     --------------------------- in this macro invocation
162
163error: type `priv_parent_substs::Priv` is private
164  --> $DIR/associated-item-privacy-trait.rs:100:9
165   |
166LL |         value;
167   |         ^^^^^
168...
169LL |     priv_parent_substs::mac!();
170   |     --------------------------- in this macro invocation
171
172error: type `priv_parent_substs::Priv` is private
173  --> $DIR/associated-item-privacy-trait.rs:102:9
174   |
175LL |         Pub.method();
176   |         ^^^^^^^^^^^^
177...
178LL |     priv_parent_substs::mac!();
179   |     --------------------------- in this macro invocation
180
181error: type `priv_parent_substs::Priv` is private
182  --> $DIR/associated-item-privacy-trait.rs:105:21
183   |
184LL |         let value = <Priv as PubTr<_>>::method;
185   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
186...
187LL |     priv_parent_substs::mac!();
188   |     --------------------------- in this macro invocation
189
190error: type `priv_parent_substs::Priv` is private
191  --> $DIR/associated-item-privacy-trait.rs:107:9
192   |
193LL |         value;
194   |         ^^^^^
195...
196LL |     priv_parent_substs::mac!();
197   |     --------------------------- in this macro invocation
198
199error: type `priv_parent_substs::Priv` is private
200  --> $DIR/associated-item-privacy-trait.rs:109:9
201   |
202LL |         Priv.method();
203   |         ^^^^^^^^^^^^^
204...
205LL |     priv_parent_substs::mac!();
206   |     --------------------------- in this macro invocation
207
208error: type `priv_parent_substs::Priv` is private
209  --> $DIR/associated-item-privacy-trait.rs:112:9
210   |
211LL |         <Pub as PubTr>::CONST;
212   |         ^^^^^^^^^^^^^^^^^^^^^
213...
214LL |     priv_parent_substs::mac!();
215   |     --------------------------- in this macro invocation
216
217error: type `priv_parent_substs::Priv` is private
218  --> $DIR/associated-item-privacy-trait.rs:114:9
219   |
220LL |         <Pub as PubTr<_>>::CONST;
221   |         ^^^^^^^^^^^^^^^^^^^^^^^^
222...
223LL |     priv_parent_substs::mac!();
224   |     --------------------------- in this macro invocation
225
226error: type `priv_parent_substs::Priv` is private
227  --> $DIR/associated-item-privacy-trait.rs:116:9
228   |
229LL |         <Priv as PubTr<_>>::CONST;
230   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
231...
232LL |     priv_parent_substs::mac!();
233   |     --------------------------- in this macro invocation
234
235error: type `priv_parent_substs::Priv` is private
236  --> $DIR/associated-item-privacy-trait.rs:119:13
237   |
238LL |         let _: <Pub as PubTr>::AssocTy;
239   |             ^
240...
241LL |     priv_parent_substs::mac!();
242   |     --------------------------- in this macro invocation
243
244error: type `priv_parent_substs::Priv` is private
245  --> $DIR/associated-item-privacy-trait.rs:119:16
246   |
247LL |         let _: <Pub as PubTr>::AssocTy;
248   |                ^^^^^^^^^^^^^^^^^^^^^^^
249...
250LL |     priv_parent_substs::mac!();
251   |     --------------------------- in this macro invocation
252
253error: type `priv_parent_substs::Priv` is private
254  --> $DIR/associated-item-privacy-trait.rs:122:13
255   |
256LL |         let _: <Pub as PubTr<_>>::AssocTy;
257   |             ^
258...
259LL |     priv_parent_substs::mac!();
260   |     --------------------------- in this macro invocation
261
262error: type `priv_parent_substs::Priv` is private
263  --> $DIR/associated-item-privacy-trait.rs:122:16
264   |
265LL |         let _: <Pub as PubTr<_>>::AssocTy;
266   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^
267...
268LL |     priv_parent_substs::mac!();
269   |     --------------------------- in this macro invocation
270
271error: type `priv_parent_substs::Priv` is private
272  --> $DIR/associated-item-privacy-trait.rs:125:13
273   |
274LL |         let _: <Priv as PubTr<_>>::AssocTy;
275   |             ^
276...
277LL |     priv_parent_substs::mac!();
278   |     --------------------------- in this macro invocation
279
280error: type `priv_parent_substs::Priv` is private
281  --> $DIR/associated-item-privacy-trait.rs:125:16
282   |
283LL |         let _: <Priv as PubTr<_>>::AssocTy;
284   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
285...
286LL |     priv_parent_substs::mac!();
287   |     --------------------------- in this macro invocation
288
289error: type `priv_parent_substs::Priv` is private
290  --> $DIR/associated-item-privacy-trait.rs:129:35
291   |
292LL |         pub type InSignatureTy1 = <Pub as PubTr>::AssocTy;
293   |                                   ^^^^^^^^^^^^^^^^^^^^^^^
294...
295LL |     priv_parent_substs::mac!();
296   |     --------------------------- in this macro invocation
297
298error: type `priv_parent_substs::Priv` is private
299  --> $DIR/associated-item-privacy-trait.rs:131:35
300   |
301LL |         pub type InSignatureTy2 = <Priv as PubTr<Pub>>::AssocTy;
302   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
303...
304LL |     priv_parent_substs::mac!();
305   |     --------------------------- in this macro invocation
306
307error: type `priv_parent_substs::Priv` is private
308  --> $DIR/associated-item-privacy-trait.rs:133:14
309   |
310LL |         impl PubTr for u8 {}
311   |              ^^^^^
312...
313LL |     priv_parent_substs::mac!();
314   |     --------------------------- in this macro invocation
315
316error: aborting due to 35 previous errors
317