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