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