]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/privacy5.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / privacy / privacy5.stderr
1 error[E0603]: tuple struct constructor `A` is private
2   --> $DIR/privacy5.rs:51:16
3    |
4 LL |     pub struct A(());
5    |                  -- a constructor is private if any of the fields is private
6 ...
7 LL |     let a = a::A(());
8    |                ^ private tuple struct constructor
9    |
10 note: the tuple struct constructor `A` is defined here
11   --> $DIR/privacy5.rs:6:5
12    |
13 LL |     pub struct A(());
14    |     ^^^^^^^^^^^^^^^^^
15
16 error[E0603]: tuple struct constructor `B` is private
17   --> $DIR/privacy5.rs:52:16
18    |
19 LL |     pub struct B(isize);
20    |                  ----- a constructor is private if any of the fields is private
21 ...
22 LL |     let b = a::B(2);
23    |                ^ private tuple struct constructor
24    |
25 note: the tuple struct constructor `B` is defined here
26   --> $DIR/privacy5.rs:7:5
27    |
28 LL |     pub struct B(isize);
29    |     ^^^^^^^^^^^^^^^^^^^^
30
31 error[E0603]: tuple struct constructor `C` is private
32   --> $DIR/privacy5.rs:53:16
33    |
34 LL |     pub struct C(pub isize, isize);
35    |                  ---------------- a constructor is private if any of the fields is private
36 ...
37 LL |     let c = a::C(2, 3);
38    |                ^ private tuple struct constructor
39    |
40 note: the tuple struct constructor `C` is defined here
41   --> $DIR/privacy5.rs:8:5
42    |
43 LL |     pub struct C(pub isize, isize);
44    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45
46 error[E0603]: tuple struct constructor `A` is private
47   --> $DIR/privacy5.rs:56:12
48    |
49 LL |     pub struct A(());
50    |                  -- a constructor is private if any of the fields is private
51 ...
52 LL |     let a::A(()) = a;
53    |            ^ private tuple struct constructor
54    |
55 note: the tuple struct constructor `A` is defined here
56   --> $DIR/privacy5.rs:6:5
57    |
58 LL |     pub struct A(());
59    |     ^^^^^^^^^^^^^^^^^
60
61 error[E0603]: tuple struct constructor `A` is private
62   --> $DIR/privacy5.rs:57:12
63    |
64 LL |     pub struct A(());
65    |                  -- a constructor is private if any of the fields is private
66 ...
67 LL |     let a::A(_) = a;
68    |            ^ private tuple struct constructor
69    |
70 note: the tuple struct constructor `A` is defined here
71   --> $DIR/privacy5.rs:6:5
72    |
73 LL |     pub struct A(());
74    |     ^^^^^^^^^^^^^^^^^
75
76 error[E0603]: tuple struct constructor `A` is private
77   --> $DIR/privacy5.rs:58:18
78    |
79 LL |     pub struct A(());
80    |                  -- a constructor is private if any of the fields is private
81 ...
82 LL |     match a { a::A(()) => {} }
83    |                  ^ private tuple struct constructor
84    |
85 note: the tuple struct constructor `A` is defined here
86   --> $DIR/privacy5.rs:6:5
87    |
88 LL |     pub struct A(());
89    |     ^^^^^^^^^^^^^^^^^
90
91 error[E0603]: tuple struct constructor `A` is private
92   --> $DIR/privacy5.rs:59:18
93    |
94 LL |     pub struct A(());
95    |                  -- a constructor is private if any of the fields is private
96 ...
97 LL |     match a { a::A(_) => {} }
98    |                  ^ private tuple struct constructor
99    |
100 note: the tuple struct constructor `A` is defined here
101   --> $DIR/privacy5.rs:6:5
102    |
103 LL |     pub struct A(());
104    |     ^^^^^^^^^^^^^^^^^
105
106 error[E0603]: tuple struct constructor `B` is private
107   --> $DIR/privacy5.rs:61:12
108    |
109 LL |     pub struct B(isize);
110    |                  ----- a constructor is private if any of the fields is private
111 ...
112 LL |     let a::B(_) = b;
113    |            ^ private tuple struct constructor
114    |
115 note: the tuple struct constructor `B` is defined here
116   --> $DIR/privacy5.rs:7:5
117    |
118 LL |     pub struct B(isize);
119    |     ^^^^^^^^^^^^^^^^^^^^
120
121 error[E0603]: tuple struct constructor `B` is private
122   --> $DIR/privacy5.rs:62:12
123    |
124 LL |     pub struct B(isize);
125    |                  ----- a constructor is private if any of the fields is private
126 ...
127 LL |     let a::B(_b) = b;
128    |            ^ private tuple struct constructor
129    |
130 note: the tuple struct constructor `B` is defined here
131   --> $DIR/privacy5.rs:7:5
132    |
133 LL |     pub struct B(isize);
134    |     ^^^^^^^^^^^^^^^^^^^^
135
136 error[E0603]: tuple struct constructor `B` is private
137   --> $DIR/privacy5.rs:63:18
138    |
139 LL |     pub struct B(isize);
140    |                  ----- a constructor is private if any of the fields is private
141 ...
142 LL |     match b { a::B(_) => {} }
143    |                  ^ private tuple struct constructor
144    |
145 note: the tuple struct constructor `B` is defined here
146   --> $DIR/privacy5.rs:7:5
147    |
148 LL |     pub struct B(isize);
149    |     ^^^^^^^^^^^^^^^^^^^^
150
151 error[E0603]: tuple struct constructor `B` is private
152   --> $DIR/privacy5.rs:64:18
153    |
154 LL |     pub struct B(isize);
155    |                  ----- a constructor is private if any of the fields is private
156 ...
157 LL |     match b { a::B(_b) => {} }
158    |                  ^ private tuple struct constructor
159    |
160 note: the tuple struct constructor `B` is defined here
161   --> $DIR/privacy5.rs:7:5
162    |
163 LL |     pub struct B(isize);
164    |     ^^^^^^^^^^^^^^^^^^^^
165
166 error[E0603]: tuple struct constructor `B` is private
167   --> $DIR/privacy5.rs:65:18
168    |
169 LL |     pub struct B(isize);
170    |                  ----- a constructor is private if any of the fields is private
171 ...
172 LL |     match b { a::B(1) => {} a::B(_) => {} }
173    |                  ^ private tuple struct constructor
174    |
175 note: the tuple struct constructor `B` is defined here
176   --> $DIR/privacy5.rs:7:5
177    |
178 LL |     pub struct B(isize);
179    |     ^^^^^^^^^^^^^^^^^^^^
180
181 error[E0603]: tuple struct constructor `B` is private
182   --> $DIR/privacy5.rs:65:32
183    |
184 LL |     pub struct B(isize);
185    |                  ----- a constructor is private if any of the fields is private
186 ...
187 LL |     match b { a::B(1) => {} a::B(_) => {} }
188    |                                ^ private tuple struct constructor
189    |
190 note: the tuple struct constructor `B` is defined here
191   --> $DIR/privacy5.rs:7:5
192    |
193 LL |     pub struct B(isize);
194    |     ^^^^^^^^^^^^^^^^^^^^
195
196 error[E0603]: tuple struct constructor `C` is private
197   --> $DIR/privacy5.rs:68:12
198    |
199 LL |     pub struct C(pub isize, isize);
200    |                  ---------------- a constructor is private if any of the fields is private
201 ...
202 LL |     let a::C(_, _) = c;
203    |            ^ private tuple struct constructor
204    |
205 note: the tuple struct constructor `C` is defined here
206   --> $DIR/privacy5.rs:8:5
207    |
208 LL |     pub struct C(pub isize, isize);
209    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
210
211 error[E0603]: tuple struct constructor `C` is private
212   --> $DIR/privacy5.rs:69:12
213    |
214 LL |     pub struct C(pub isize, isize);
215    |                  ---------------- a constructor is private if any of the fields is private
216 ...
217 LL |     let a::C(_a, _) = c;
218    |            ^ private tuple struct constructor
219    |
220 note: the tuple struct constructor `C` is defined here
221   --> $DIR/privacy5.rs:8:5
222    |
223 LL |     pub struct C(pub isize, isize);
224    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
225
226 error[E0603]: tuple struct constructor `C` is private
227   --> $DIR/privacy5.rs:70:12
228    |
229 LL |     pub struct C(pub isize, isize);
230    |                  ---------------- a constructor is private if any of the fields is private
231 ...
232 LL |     let a::C(_, _b) = c;
233    |            ^ private tuple struct constructor
234    |
235 note: the tuple struct constructor `C` is defined here
236   --> $DIR/privacy5.rs:8:5
237    |
238 LL |     pub struct C(pub isize, isize);
239    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
240
241 error[E0603]: tuple struct constructor `C` is private
242   --> $DIR/privacy5.rs:71:12
243    |
244 LL |     pub struct C(pub isize, isize);
245    |                  ---------------- a constructor is private if any of the fields is private
246 ...
247 LL |     let a::C(_a, _b) = c;
248    |            ^ private tuple struct constructor
249    |
250 note: the tuple struct constructor `C` is defined here
251   --> $DIR/privacy5.rs:8:5
252    |
253 LL |     pub struct C(pub isize, isize);
254    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
255
256 error[E0603]: tuple struct constructor `C` is private
257   --> $DIR/privacy5.rs:72:18
258    |
259 LL |     pub struct C(pub isize, isize);
260    |                  ---------------- a constructor is private if any of the fields is private
261 ...
262 LL |     match c { a::C(_, _) => {} }
263    |                  ^ private tuple struct constructor
264    |
265 note: the tuple struct constructor `C` is defined here
266   --> $DIR/privacy5.rs:8:5
267    |
268 LL |     pub struct C(pub isize, isize);
269    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
270
271 error[E0603]: tuple struct constructor `C` is private
272   --> $DIR/privacy5.rs:73:18
273    |
274 LL |     pub struct C(pub isize, isize);
275    |                  ---------------- a constructor is private if any of the fields is private
276 ...
277 LL |     match c { a::C(_a, _) => {} }
278    |                  ^ private tuple struct constructor
279    |
280 note: the tuple struct constructor `C` is defined here
281   --> $DIR/privacy5.rs:8:5
282    |
283 LL |     pub struct C(pub isize, isize);
284    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
285
286 error[E0603]: tuple struct constructor `C` is private
287   --> $DIR/privacy5.rs:74:18
288    |
289 LL |     pub struct C(pub isize, isize);
290    |                  ---------------- a constructor is private if any of the fields is private
291 ...
292 LL |     match c { a::C(_, _b) => {} }
293    |                  ^ private tuple struct constructor
294    |
295 note: the tuple struct constructor `C` is defined here
296   --> $DIR/privacy5.rs:8:5
297    |
298 LL |     pub struct C(pub isize, isize);
299    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
300
301 error[E0603]: tuple struct constructor `C` is private
302   --> $DIR/privacy5.rs:75:18
303    |
304 LL |     pub struct C(pub isize, isize);
305    |                  ---------------- a constructor is private if any of the fields is private
306 ...
307 LL |     match c { a::C(_a, _b) => {} }
308    |                  ^ private tuple struct constructor
309    |
310 note: the tuple struct constructor `C` is defined here
311   --> $DIR/privacy5.rs:8:5
312    |
313 LL |     pub struct C(pub isize, isize);
314    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
315
316 error[E0603]: tuple struct constructor `A` is private
317   --> $DIR/privacy5.rs:83:17
318    |
319 LL |     pub struct A(());
320    |                  -- a constructor is private if any of the fields is private
321 ...
322 LL |     let a2 = a::A;
323    |                 ^ private tuple struct constructor
324    |
325 note: the tuple struct constructor `A` is defined here
326   --> $DIR/privacy5.rs:6:5
327    |
328 LL |     pub struct A(());
329    |     ^^^^^^^^^^^^^^^^^
330
331 error[E0603]: tuple struct constructor `B` is private
332   --> $DIR/privacy5.rs:84:17
333    |
334 LL |     pub struct B(isize);
335    |                  ----- a constructor is private if any of the fields is private
336 ...
337 LL |     let b2 = a::B;
338    |                 ^ private tuple struct constructor
339    |
340 note: the tuple struct constructor `B` is defined here
341   --> $DIR/privacy5.rs:7:5
342    |
343 LL |     pub struct B(isize);
344    |     ^^^^^^^^^^^^^^^^^^^^
345
346 error[E0603]: tuple struct constructor `C` is private
347   --> $DIR/privacy5.rs:85:17
348    |
349 LL |     pub struct C(pub isize, isize);
350    |                  ---------------- a constructor is private if any of the fields is private
351 ...
352 LL |     let c2 = a::C;
353    |                 ^ private tuple struct constructor
354    |
355 note: the tuple struct constructor `C` is defined here
356   --> $DIR/privacy5.rs:8:5
357    |
358 LL |     pub struct C(pub isize, isize);
359    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
360
361 error[E0603]: tuple struct constructor `A` is private
362   --> $DIR/privacy5.rs:90:20
363    |
364 LL |     let a = other::A(());
365    |                    ^ private tuple struct constructor
366    | 
367   ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
368    |
369 LL | pub struct A(());
370    |              -- a constructor is private if any of the fields is private
371    |
372 note: the tuple struct constructor `A` is defined here
373   --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
374    |
375 LL | pub struct A(());
376    | ^^^^^^^^^^^^^^^^^
377
378 error[E0603]: tuple struct constructor `B` is private
379   --> $DIR/privacy5.rs:91:20
380    |
381 LL |     let b = other::B(2);
382    |                    ^ private tuple struct constructor
383    | 
384   ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
385    |
386 LL | pub struct B(isize);
387    |              ----- a constructor is private if any of the fields is private
388    |
389 note: the tuple struct constructor `B` is defined here
390   --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
391    |
392 LL | pub struct B(isize);
393    | ^^^^^^^^^^^^^^^^^^^^
394
395 error[E0603]: tuple struct constructor `C` is private
396   --> $DIR/privacy5.rs:92:20
397    |
398 LL |     let c = other::C(2, 3);
399    |                    ^ private tuple struct constructor
400    | 
401   ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
402    |
403 LL | pub struct C(pub isize, isize);
404    |              ---------------- a constructor is private if any of the fields is private
405    |
406 note: the tuple struct constructor `C` is defined here
407   --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
408    |
409 LL | pub struct C(pub isize, isize);
410    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
411
412 error[E0603]: tuple struct constructor `A` is private
413   --> $DIR/privacy5.rs:95:16
414    |
415 LL |     let other::A(()) = a;
416    |                ^ private tuple struct constructor
417    | 
418   ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
419    |
420 LL | pub struct A(());
421    |              -- a constructor is private if any of the fields is private
422    |
423 note: the tuple struct constructor `A` is defined here
424   --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
425    |
426 LL | pub struct A(());
427    | ^^^^^^^^^^^^^^^^^
428
429 error[E0603]: tuple struct constructor `A` is private
430   --> $DIR/privacy5.rs:96:16
431    |
432 LL |     let other::A(_) = a;
433    |                ^ private tuple struct constructor
434    | 
435   ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
436    |
437 LL | pub struct A(());
438    |              -- a constructor is private if any of the fields is private
439    |
440 note: the tuple struct constructor `A` is defined here
441   --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
442    |
443 LL | pub struct A(());
444    | ^^^^^^^^^^^^^^^^^
445
446 error[E0603]: tuple struct constructor `A` is private
447   --> $DIR/privacy5.rs:97:22
448    |
449 LL |     match a { other::A(()) => {} }
450    |                      ^ private tuple struct constructor
451    | 
452   ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
453    |
454 LL | pub struct A(());
455    |              -- a constructor is private if any of the fields is private
456    |
457 note: the tuple struct constructor `A` is defined here
458   --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
459    |
460 LL | pub struct A(());
461    | ^^^^^^^^^^^^^^^^^
462
463 error[E0603]: tuple struct constructor `A` is private
464   --> $DIR/privacy5.rs:98:22
465    |
466 LL |     match a { other::A(_) => {} }
467    |                      ^ private tuple struct constructor
468    | 
469   ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
470    |
471 LL | pub struct A(());
472    |              -- a constructor is private if any of the fields is private
473    |
474 note: the tuple struct constructor `A` is defined here
475   --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
476    |
477 LL | pub struct A(());
478    | ^^^^^^^^^^^^^^^^^
479
480 error[E0603]: tuple struct constructor `B` is private
481   --> $DIR/privacy5.rs:100:16
482    |
483 LL |     let other::B(_) = b;
484    |                ^ private tuple struct constructor
485    | 
486   ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
487    |
488 LL | pub struct B(isize);
489    |              ----- a constructor is private if any of the fields is private
490    |
491 note: the tuple struct constructor `B` is defined here
492   --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
493    |
494 LL | pub struct B(isize);
495    | ^^^^^^^^^^^^^^^^^^^^
496
497 error[E0603]: tuple struct constructor `B` is private
498   --> $DIR/privacy5.rs:101:16
499    |
500 LL |     let other::B(_b) = b;
501    |                ^ private tuple struct constructor
502    | 
503   ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
504    |
505 LL | pub struct B(isize);
506    |              ----- a constructor is private if any of the fields is private
507    |
508 note: the tuple struct constructor `B` is defined here
509   --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
510    |
511 LL | pub struct B(isize);
512    | ^^^^^^^^^^^^^^^^^^^^
513
514 error[E0603]: tuple struct constructor `B` is private
515   --> $DIR/privacy5.rs:102:22
516    |
517 LL |     match b { other::B(_) => {} }
518    |                      ^ private tuple struct constructor
519    | 
520   ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
521    |
522 LL | pub struct B(isize);
523    |              ----- a constructor is private if any of the fields is private
524    |
525 note: the tuple struct constructor `B` is defined here
526   --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
527    |
528 LL | pub struct B(isize);
529    | ^^^^^^^^^^^^^^^^^^^^
530
531 error[E0603]: tuple struct constructor `B` is private
532   --> $DIR/privacy5.rs:103:22
533    |
534 LL |     match b { other::B(_b) => {} }
535    |                      ^ private tuple struct constructor
536    | 
537   ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
538    |
539 LL | pub struct B(isize);
540    |              ----- a constructor is private if any of the fields is private
541    |
542 note: the tuple struct constructor `B` is defined here
543   --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
544    |
545 LL | pub struct B(isize);
546    | ^^^^^^^^^^^^^^^^^^^^
547
548 error[E0603]: tuple struct constructor `B` is private
549   --> $DIR/privacy5.rs:104:22
550    |
551 LL |     match b { other::B(1) => {}
552    |                      ^ private tuple struct constructor
553    | 
554   ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
555    |
556 LL | pub struct B(isize);
557    |              ----- a constructor is private if any of the fields is private
558    |
559 note: the tuple struct constructor `B` is defined here
560   --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
561    |
562 LL | pub struct B(isize);
563    | ^^^^^^^^^^^^^^^^^^^^
564
565 error[E0603]: tuple struct constructor `B` is private
566   --> $DIR/privacy5.rs:105:16
567    |
568 LL |         other::B(_) => {} }
569    |                ^ private tuple struct constructor
570    | 
571   ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
572    |
573 LL | pub struct B(isize);
574    |              ----- a constructor is private if any of the fields is private
575    |
576 note: the tuple struct constructor `B` is defined here
577   --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
578    |
579 LL | pub struct B(isize);
580    | ^^^^^^^^^^^^^^^^^^^^
581
582 error[E0603]: tuple struct constructor `C` is private
583   --> $DIR/privacy5.rs:107:16
584    |
585 LL |     let other::C(_, _) = c;
586    |                ^ private tuple struct constructor
587    | 
588   ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
589    |
590 LL | pub struct C(pub isize, isize);
591    |              ---------------- a constructor is private if any of the fields is private
592    |
593 note: the tuple struct constructor `C` is defined here
594   --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
595    |
596 LL | pub struct C(pub isize, isize);
597    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
598
599 error[E0603]: tuple struct constructor `C` is private
600   --> $DIR/privacy5.rs:108:16
601    |
602 LL |     let other::C(_a, _) = c;
603    |                ^ private tuple struct constructor
604    | 
605   ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
606    |
607 LL | pub struct C(pub isize, isize);
608    |              ---------------- a constructor is private if any of the fields is private
609    |
610 note: the tuple struct constructor `C` is defined here
611   --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
612    |
613 LL | pub struct C(pub isize, isize);
614    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
615
616 error[E0603]: tuple struct constructor `C` is private
617   --> $DIR/privacy5.rs:109:16
618    |
619 LL |     let other::C(_, _b) = c;
620    |                ^ private tuple struct constructor
621    | 
622   ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
623    |
624 LL | pub struct C(pub isize, isize);
625    |              ---------------- a constructor is private if any of the fields is private
626    |
627 note: the tuple struct constructor `C` is defined here
628   --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
629    |
630 LL | pub struct C(pub isize, isize);
631    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
632
633 error[E0603]: tuple struct constructor `C` is private
634   --> $DIR/privacy5.rs:110:16
635    |
636 LL |     let other::C(_a, _b) = c;
637    |                ^ private tuple struct constructor
638    | 
639   ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
640    |
641 LL | pub struct C(pub isize, isize);
642    |              ---------------- a constructor is private if any of the fields is private
643    |
644 note: the tuple struct constructor `C` is defined here
645   --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
646    |
647 LL | pub struct C(pub isize, isize);
648    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
649
650 error[E0603]: tuple struct constructor `C` is private
651   --> $DIR/privacy5.rs:111:22
652    |
653 LL |     match c { other::C(_, _) => {} }
654    |                      ^ private tuple struct constructor
655    | 
656   ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
657    |
658 LL | pub struct C(pub isize, isize);
659    |              ---------------- a constructor is private if any of the fields is private
660    |
661 note: the tuple struct constructor `C` is defined here
662   --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
663    |
664 LL | pub struct C(pub isize, isize);
665    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
666
667 error[E0603]: tuple struct constructor `C` is private
668   --> $DIR/privacy5.rs:112:22
669    |
670 LL |     match c { other::C(_a, _) => {} }
671    |                      ^ private tuple struct constructor
672    | 
673   ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
674    |
675 LL | pub struct C(pub isize, isize);
676    |              ---------------- a constructor is private if any of the fields is private
677    |
678 note: the tuple struct constructor `C` is defined here
679   --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
680    |
681 LL | pub struct C(pub isize, isize);
682    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
683
684 error[E0603]: tuple struct constructor `C` is private
685   --> $DIR/privacy5.rs:113:22
686    |
687 LL |     match c { other::C(_, _b) => {} }
688    |                      ^ private tuple struct constructor
689    | 
690   ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
691    |
692 LL | pub struct C(pub isize, isize);
693    |              ---------------- a constructor is private if any of the fields is private
694    |
695 note: the tuple struct constructor `C` is defined here
696   --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
697    |
698 LL | pub struct C(pub isize, isize);
699    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
700
701 error[E0603]: tuple struct constructor `C` is private
702   --> $DIR/privacy5.rs:114:22
703    |
704 LL |     match c { other::C(_a, _b) => {} }
705    |                      ^ private tuple struct constructor
706    | 
707   ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
708    |
709 LL | pub struct C(pub isize, isize);
710    |              ---------------- a constructor is private if any of the fields is private
711    |
712 note: the tuple struct constructor `C` is defined here
713   --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
714    |
715 LL | pub struct C(pub isize, isize);
716    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
717
718 error[E0603]: tuple struct constructor `A` is private
719   --> $DIR/privacy5.rs:122:21
720    |
721 LL |     let a2 = other::A;
722    |                     ^ private tuple struct constructor
723    | 
724   ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
725    |
726 LL | pub struct A(());
727    |              -- a constructor is private if any of the fields is private
728    |
729 note: the tuple struct constructor `A` is defined here
730   --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
731    |
732 LL | pub struct A(());
733    | ^^^^^^^^^^^^^^^^^
734
735 error[E0603]: tuple struct constructor `B` is private
736   --> $DIR/privacy5.rs:123:21
737    |
738 LL |     let b2 = other::B;
739    |                     ^ private tuple struct constructor
740    | 
741   ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
742    |
743 LL | pub struct B(isize);
744    |              ----- a constructor is private if any of the fields is private
745    |
746 note: the tuple struct constructor `B` is defined here
747   --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
748    |
749 LL | pub struct B(isize);
750    | ^^^^^^^^^^^^^^^^^^^^
751
752 error[E0603]: tuple struct constructor `C` is private
753   --> $DIR/privacy5.rs:124:21
754    |
755 LL |     let c2 = other::C;
756    |                     ^ private tuple struct constructor
757    | 
758   ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
759    |
760 LL | pub struct C(pub isize, isize);
761    |              ---------------- a constructor is private if any of the fields is private
762    |
763 note: the tuple struct constructor `C` is defined here
764   --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
765    |
766 LL | pub struct C(pub isize, isize);
767    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
768
769 error: aborting due to 48 previous errors
770
771 For more information about this error, try `rustc --explain E0603`.