1 error[E0603]: tuple struct constructor `A` is private
2 --> $DIR/privacy5.rs:51:16
5 | -- a constructor is private if any of the fields is private
8 | ^ private tuple struct constructor
10 note: the tuple struct constructor `A` is defined here
11 --> $DIR/privacy5.rs:6:5
13 LL | pub struct A(());
16 error[E0603]: tuple struct constructor `B` is private
17 --> $DIR/privacy5.rs:52:16
19 LL | pub struct B(isize);
20 | ----- a constructor is private if any of the fields is private
23 | ^ private tuple struct constructor
25 note: the tuple struct constructor `B` is defined here
26 --> $DIR/privacy5.rs:7:5
28 LL | pub struct B(isize);
29 | ^^^^^^^^^^^^^^^^^^^^
31 error[E0603]: tuple struct constructor `C` is private
32 --> $DIR/privacy5.rs:53:16
34 LL | pub struct C(pub isize, isize);
35 | ---------------- a constructor is private if any of the fields is private
37 LL | let c = a::C(2, 3);
38 | ^ private tuple struct constructor
40 note: the tuple struct constructor `C` is defined here
41 --> $DIR/privacy5.rs:8:5
43 LL | pub struct C(pub isize, isize);
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 error[E0603]: tuple struct constructor `A` is private
47 --> $DIR/privacy5.rs:56:12
49 LL | pub struct A(());
50 | -- a constructor is private if any of the fields is private
52 LL | let a::A(()) = a;
53 | ^ private tuple struct constructor
55 note: the tuple struct constructor `A` is defined here
56 --> $DIR/privacy5.rs:6:5
58 LL | pub struct A(());
61 error[E0603]: tuple struct constructor `A` is private
62 --> $DIR/privacy5.rs:57:12
64 LL | pub struct A(());
65 | -- a constructor is private if any of the fields is private
68 | ^ private tuple struct constructor
70 note: the tuple struct constructor `A` is defined here
71 --> $DIR/privacy5.rs:6:5
73 LL | pub struct A(());
76 error[E0603]: tuple struct constructor `A` is private
77 --> $DIR/privacy5.rs:58:18
79 LL | pub struct A(());
80 | -- a constructor is private if any of the fields is private
82 LL | match a { a::A(()) => {} }
83 | ^ private tuple struct constructor
85 note: the tuple struct constructor `A` is defined here
86 --> $DIR/privacy5.rs:6:5
88 LL | pub struct A(());
91 error[E0603]: tuple struct constructor `A` is private
92 --> $DIR/privacy5.rs:59:18
94 LL | pub struct A(());
95 | -- a constructor is private if any of the fields is private
97 LL | match a { a::A(_) => {} }
98 | ^ private tuple struct constructor
100 note: the tuple struct constructor `A` is defined here
101 --> $DIR/privacy5.rs:6:5
103 LL | pub struct A(());
106 error[E0603]: tuple struct constructor `B` is private
107 --> $DIR/privacy5.rs:61:12
109 LL | pub struct B(isize);
110 | ----- a constructor is private if any of the fields is private
112 LL | let a::B(_) = b;
113 | ^ private tuple struct constructor
115 note: the tuple struct constructor `B` is defined here
116 --> $DIR/privacy5.rs:7:5
118 LL | pub struct B(isize);
119 | ^^^^^^^^^^^^^^^^^^^^
121 error[E0603]: tuple struct constructor `B` is private
122 --> $DIR/privacy5.rs:62:12
124 LL | pub struct B(isize);
125 | ----- a constructor is private if any of the fields is private
127 LL | let a::B(_b) = b;
128 | ^ private tuple struct constructor
130 note: the tuple struct constructor `B` is defined here
131 --> $DIR/privacy5.rs:7:5
133 LL | pub struct B(isize);
134 | ^^^^^^^^^^^^^^^^^^^^
136 error[E0603]: tuple struct constructor `B` is private
137 --> $DIR/privacy5.rs:63:18
139 LL | pub struct B(isize);
140 | ----- a constructor is private if any of the fields is private
142 LL | match b { a::B(_) => {} }
143 | ^ private tuple struct constructor
145 note: the tuple struct constructor `B` is defined here
146 --> $DIR/privacy5.rs:7:5
148 LL | pub struct B(isize);
149 | ^^^^^^^^^^^^^^^^^^^^
151 error[E0603]: tuple struct constructor `B` is private
152 --> $DIR/privacy5.rs:64:18
154 LL | pub struct B(isize);
155 | ----- a constructor is private if any of the fields is private
157 LL | match b { a::B(_b) => {} }
158 | ^ private tuple struct constructor
160 note: the tuple struct constructor `B` is defined here
161 --> $DIR/privacy5.rs:7:5
163 LL | pub struct B(isize);
164 | ^^^^^^^^^^^^^^^^^^^^
166 error[E0603]: tuple struct constructor `B` is private
167 --> $DIR/privacy5.rs:65:18
169 LL | pub struct B(isize);
170 | ----- a constructor is private if any of the fields is private
172 LL | match b { a::B(1) => {} a::B(_) => {} }
173 | ^ private tuple struct constructor
175 note: the tuple struct constructor `B` is defined here
176 --> $DIR/privacy5.rs:7:5
178 LL | pub struct B(isize);
179 | ^^^^^^^^^^^^^^^^^^^^
181 error[E0603]: tuple struct constructor `B` is private
182 --> $DIR/privacy5.rs:65:32
184 LL | pub struct B(isize);
185 | ----- a constructor is private if any of the fields is private
187 LL | match b { a::B(1) => {} a::B(_) => {} }
188 | ^ private tuple struct constructor
190 note: the tuple struct constructor `B` is defined here
191 --> $DIR/privacy5.rs:7:5
193 LL | pub struct B(isize);
194 | ^^^^^^^^^^^^^^^^^^^^
196 error[E0603]: tuple struct constructor `C` is private
197 --> $DIR/privacy5.rs:68:12
199 LL | pub struct C(pub isize, isize);
200 | ---------------- a constructor is private if any of the fields is private
202 LL | let a::C(_, _) = c;
203 | ^ private tuple struct constructor
205 note: the tuple struct constructor `C` is defined here
206 --> $DIR/privacy5.rs:8:5
208 LL | pub struct C(pub isize, isize);
209 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
211 error[E0603]: tuple struct constructor `C` is private
212 --> $DIR/privacy5.rs:69:12
214 LL | pub struct C(pub isize, isize);
215 | ---------------- a constructor is private if any of the fields is private
217 LL | let a::C(_a, _) = c;
218 | ^ private tuple struct constructor
220 note: the tuple struct constructor `C` is defined here
221 --> $DIR/privacy5.rs:8:5
223 LL | pub struct C(pub isize, isize);
224 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
226 error[E0603]: tuple struct constructor `C` is private
227 --> $DIR/privacy5.rs:70:12
229 LL | pub struct C(pub isize, isize);
230 | ---------------- a constructor is private if any of the fields is private
232 LL | let a::C(_, _b) = c;
233 | ^ private tuple struct constructor
235 note: the tuple struct constructor `C` is defined here
236 --> $DIR/privacy5.rs:8:5
238 LL | pub struct C(pub isize, isize);
239 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
241 error[E0603]: tuple struct constructor `C` is private
242 --> $DIR/privacy5.rs:71:12
244 LL | pub struct C(pub isize, isize);
245 | ---------------- a constructor is private if any of the fields is private
247 LL | let a::C(_a, _b) = c;
248 | ^ private tuple struct constructor
250 note: the tuple struct constructor `C` is defined here
251 --> $DIR/privacy5.rs:8:5
253 LL | pub struct C(pub isize, isize);
254 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
256 error[E0603]: tuple struct constructor `C` is private
257 --> $DIR/privacy5.rs:72:18
259 LL | pub struct C(pub isize, isize);
260 | ---------------- a constructor is private if any of the fields is private
262 LL | match c { a::C(_, _) => {} }
263 | ^ private tuple struct constructor
265 note: the tuple struct constructor `C` is defined here
266 --> $DIR/privacy5.rs:8:5
268 LL | pub struct C(pub isize, isize);
269 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
271 error[E0603]: tuple struct constructor `C` is private
272 --> $DIR/privacy5.rs:73:18
274 LL | pub struct C(pub isize, isize);
275 | ---------------- a constructor is private if any of the fields is private
277 LL | match c { a::C(_a, _) => {} }
278 | ^ private tuple struct constructor
280 note: the tuple struct constructor `C` is defined here
281 --> $DIR/privacy5.rs:8:5
283 LL | pub struct C(pub isize, isize);
284 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
286 error[E0603]: tuple struct constructor `C` is private
287 --> $DIR/privacy5.rs:74:18
289 LL | pub struct C(pub isize, isize);
290 | ---------------- a constructor is private if any of the fields is private
292 LL | match c { a::C(_, _b) => {} }
293 | ^ private tuple struct constructor
295 note: the tuple struct constructor `C` is defined here
296 --> $DIR/privacy5.rs:8:5
298 LL | pub struct C(pub isize, isize);
299 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
301 error[E0603]: tuple struct constructor `C` is private
302 --> $DIR/privacy5.rs:75:18
304 LL | pub struct C(pub isize, isize);
305 | ---------------- a constructor is private if any of the fields is private
307 LL | match c { a::C(_a, _b) => {} }
308 | ^ private tuple struct constructor
310 note: the tuple struct constructor `C` is defined here
311 --> $DIR/privacy5.rs:8:5
313 LL | pub struct C(pub isize, isize);
314 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
316 error[E0603]: tuple struct constructor `A` is private
317 --> $DIR/privacy5.rs:83:17
319 LL | pub struct A(());
320 | -- a constructor is private if any of the fields is private
323 | ^ private tuple struct constructor
325 note: the tuple struct constructor `A` is defined here
326 --> $DIR/privacy5.rs:6:5
328 LL | pub struct A(());
331 error[E0603]: tuple struct constructor `B` is private
332 --> $DIR/privacy5.rs:84:17
334 LL | pub struct B(isize);
335 | ----- a constructor is private if any of the fields is private
338 | ^ private tuple struct constructor
340 note: the tuple struct constructor `B` is defined here
341 --> $DIR/privacy5.rs:7:5
343 LL | pub struct B(isize);
344 | ^^^^^^^^^^^^^^^^^^^^
346 error[E0603]: tuple struct constructor `C` is private
347 --> $DIR/privacy5.rs:85:17
349 LL | pub struct C(pub isize, isize);
350 | ---------------- a constructor is private if any of the fields is private
353 | ^ private tuple struct constructor
355 note: the tuple struct constructor `C` is defined here
356 --> $DIR/privacy5.rs:8:5
358 LL | pub struct C(pub isize, isize);
359 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
361 error[E0603]: tuple struct constructor `A` is private
362 --> $DIR/privacy5.rs:90:20
364 LL | let a = other::A(());
365 | ^ private tuple struct constructor
367 ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
369 LL | pub struct A(());
370 | -- a constructor is private if any of the fields is private
372 note: the tuple struct constructor `A` is defined here
373 --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
375 LL | pub struct A(());
378 error[E0603]: tuple struct constructor `B` is private
379 --> $DIR/privacy5.rs:91:20
381 LL | let b = other::B(2);
382 | ^ private tuple struct constructor
384 ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
386 LL | pub struct B(isize);
387 | ----- a constructor is private if any of the fields is private
389 note: the tuple struct constructor `B` is defined here
390 --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
392 LL | pub struct B(isize);
395 error[E0603]: tuple struct constructor `C` is private
396 --> $DIR/privacy5.rs:92:20
398 LL | let c = other::C(2, 3);
399 | ^ private tuple struct constructor
401 ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
403 LL | pub struct C(pub isize, isize);
404 | ---------------- a constructor is private if any of the fields is private
406 note: the tuple struct constructor `C` is defined here
407 --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
409 LL | pub struct C(pub isize, isize);
412 error[E0603]: tuple struct constructor `A` is private
413 --> $DIR/privacy5.rs:95:16
415 LL | let other::A(()) = a;
416 | ^ private tuple struct constructor
418 ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
420 LL | pub struct A(());
421 | -- a constructor is private if any of the fields is private
423 note: the tuple struct constructor `A` is defined here
424 --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
426 LL | pub struct A(());
429 error[E0603]: tuple struct constructor `A` is private
430 --> $DIR/privacy5.rs:96:16
432 LL | let other::A(_) = a;
433 | ^ private tuple struct constructor
435 ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
437 LL | pub struct A(());
438 | -- a constructor is private if any of the fields is private
440 note: the tuple struct constructor `A` is defined here
441 --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
443 LL | pub struct A(());
446 error[E0603]: tuple struct constructor `A` is private
447 --> $DIR/privacy5.rs:97:22
449 LL | match a { other::A(()) => {} }
450 | ^ private tuple struct constructor
452 ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
454 LL | pub struct A(());
455 | -- a constructor is private if any of the fields is private
457 note: the tuple struct constructor `A` is defined here
458 --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
460 LL | pub struct A(());
463 error[E0603]: tuple struct constructor `A` is private
464 --> $DIR/privacy5.rs:98:22
466 LL | match a { other::A(_) => {} }
467 | ^ private tuple struct constructor
469 ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
471 LL | pub struct A(());
472 | -- a constructor is private if any of the fields is private
474 note: the tuple struct constructor `A` is defined here
475 --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
477 LL | pub struct A(());
480 error[E0603]: tuple struct constructor `B` is private
481 --> $DIR/privacy5.rs:100:16
483 LL | let other::B(_) = b;
484 | ^ private tuple struct constructor
486 ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
488 LL | pub struct B(isize);
489 | ----- a constructor is private if any of the fields is private
491 note: the tuple struct constructor `B` is defined here
492 --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
494 LL | pub struct B(isize);
497 error[E0603]: tuple struct constructor `B` is private
498 --> $DIR/privacy5.rs:101:16
500 LL | let other::B(_b) = b;
501 | ^ private tuple struct constructor
503 ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
505 LL | pub struct B(isize);
506 | ----- a constructor is private if any of the fields is private
508 note: the tuple struct constructor `B` is defined here
509 --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
511 LL | pub struct B(isize);
514 error[E0603]: tuple struct constructor `B` is private
515 --> $DIR/privacy5.rs:102:22
517 LL | match b { other::B(_) => {} }
518 | ^ private tuple struct constructor
520 ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
522 LL | pub struct B(isize);
523 | ----- a constructor is private if any of the fields is private
525 note: the tuple struct constructor `B` is defined here
526 --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
528 LL | pub struct B(isize);
531 error[E0603]: tuple struct constructor `B` is private
532 --> $DIR/privacy5.rs:103:22
534 LL | match b { other::B(_b) => {} }
535 | ^ private tuple struct constructor
537 ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
539 LL | pub struct B(isize);
540 | ----- a constructor is private if any of the fields is private
542 note: the tuple struct constructor `B` is defined here
543 --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
545 LL | pub struct B(isize);
548 error[E0603]: tuple struct constructor `B` is private
549 --> $DIR/privacy5.rs:104:22
551 LL | match b { other::B(1) => {}
552 | ^ private tuple struct constructor
554 ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
556 LL | pub struct B(isize);
557 | ----- a constructor is private if any of the fields is private
559 note: the tuple struct constructor `B` is defined here
560 --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
562 LL | pub struct B(isize);
565 error[E0603]: tuple struct constructor `B` is private
566 --> $DIR/privacy5.rs:105:16
568 LL | other::B(_) => {} }
569 | ^ private tuple struct constructor
571 ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
573 LL | pub struct B(isize);
574 | ----- a constructor is private if any of the fields is private
576 note: the tuple struct constructor `B` is defined here
577 --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
579 LL | pub struct B(isize);
582 error[E0603]: tuple struct constructor `C` is private
583 --> $DIR/privacy5.rs:107:16
585 LL | let other::C(_, _) = c;
586 | ^ private tuple struct constructor
588 ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
590 LL | pub struct C(pub isize, isize);
591 | ---------------- a constructor is private if any of the fields is private
593 note: the tuple struct constructor `C` is defined here
594 --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
596 LL | pub struct C(pub isize, isize);
599 error[E0603]: tuple struct constructor `C` is private
600 --> $DIR/privacy5.rs:108:16
602 LL | let other::C(_a, _) = c;
603 | ^ private tuple struct constructor
605 ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
607 LL | pub struct C(pub isize, isize);
608 | ---------------- a constructor is private if any of the fields is private
610 note: the tuple struct constructor `C` is defined here
611 --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
613 LL | pub struct C(pub isize, isize);
616 error[E0603]: tuple struct constructor `C` is private
617 --> $DIR/privacy5.rs:109:16
619 LL | let other::C(_, _b) = c;
620 | ^ private tuple struct constructor
622 ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
624 LL | pub struct C(pub isize, isize);
625 | ---------------- a constructor is private if any of the fields is private
627 note: the tuple struct constructor `C` is defined here
628 --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
630 LL | pub struct C(pub isize, isize);
633 error[E0603]: tuple struct constructor `C` is private
634 --> $DIR/privacy5.rs:110:16
636 LL | let other::C(_a, _b) = c;
637 | ^ private tuple struct constructor
639 ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
641 LL | pub struct C(pub isize, isize);
642 | ---------------- a constructor is private if any of the fields is private
644 note: the tuple struct constructor `C` is defined here
645 --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
647 LL | pub struct C(pub isize, isize);
650 error[E0603]: tuple struct constructor `C` is private
651 --> $DIR/privacy5.rs:111:22
653 LL | match c { other::C(_, _) => {} }
654 | ^ private tuple struct constructor
656 ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
658 LL | pub struct C(pub isize, isize);
659 | ---------------- a constructor is private if any of the fields is private
661 note: the tuple struct constructor `C` is defined here
662 --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
664 LL | pub struct C(pub isize, isize);
667 error[E0603]: tuple struct constructor `C` is private
668 --> $DIR/privacy5.rs:112:22
670 LL | match c { other::C(_a, _) => {} }
671 | ^ private tuple struct constructor
673 ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
675 LL | pub struct C(pub isize, isize);
676 | ---------------- a constructor is private if any of the fields is private
678 note: the tuple struct constructor `C` is defined here
679 --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
681 LL | pub struct C(pub isize, isize);
684 error[E0603]: tuple struct constructor `C` is private
685 --> $DIR/privacy5.rs:113:22
687 LL | match c { other::C(_, _b) => {} }
688 | ^ private tuple struct constructor
690 ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
692 LL | pub struct C(pub isize, isize);
693 | ---------------- a constructor is private if any of the fields is private
695 note: the tuple struct constructor `C` is defined here
696 --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
698 LL | pub struct C(pub isize, isize);
701 error[E0603]: tuple struct constructor `C` is private
702 --> $DIR/privacy5.rs:114:22
704 LL | match c { other::C(_a, _b) => {} }
705 | ^ private tuple struct constructor
707 ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
709 LL | pub struct C(pub isize, isize);
710 | ---------------- a constructor is private if any of the fields is private
712 note: the tuple struct constructor `C` is defined here
713 --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
715 LL | pub struct C(pub isize, isize);
718 error[E0603]: tuple struct constructor `A` is private
719 --> $DIR/privacy5.rs:122:21
721 LL | let a2 = other::A;
722 | ^ private tuple struct constructor
724 ::: $DIR/auxiliary/privacy_tuple_struct.rs:1:14
726 LL | pub struct A(());
727 | -- a constructor is private if any of the fields is private
729 note: the tuple struct constructor `A` is defined here
730 --> $DIR/auxiliary/privacy_tuple_struct.rs:1:1
732 LL | pub struct A(());
735 error[E0603]: tuple struct constructor `B` is private
736 --> $DIR/privacy5.rs:123:21
738 LL | let b2 = other::B;
739 | ^ private tuple struct constructor
741 ::: $DIR/auxiliary/privacy_tuple_struct.rs:2:14
743 LL | pub struct B(isize);
744 | ----- a constructor is private if any of the fields is private
746 note: the tuple struct constructor `B` is defined here
747 --> $DIR/auxiliary/privacy_tuple_struct.rs:2:1
749 LL | pub struct B(isize);
752 error[E0603]: tuple struct constructor `C` is private
753 --> $DIR/privacy5.rs:124:21
755 LL | let c2 = other::C;
756 | ^ private tuple struct constructor
758 ::: $DIR/auxiliary/privacy_tuple_struct.rs:3:14
760 LL | pub struct C(pub isize, isize);
761 | ---------------- a constructor is private if any of the fields is private
763 note: the tuple struct constructor `C` is defined here
764 --> $DIR/auxiliary/privacy_tuple_struct.rs:3:1
766 LL | pub struct C(pub isize, isize);
769 error: aborting due to 48 previous errors
771 For more information about this error, try `rustc --explain E0603`.