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