fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0603]: tuple struct `A` is private 2 --> $DIR/privacy5.rs:51:16 3 | 4LL | let a = a::A(()); 5 | ^ 6 | 7 = note: a tuple struct constructor is private if any of its fields is private 8 9error[E0603]: tuple struct `B` is private 10 --> $DIR/privacy5.rs:52:16 11 | 12LL | let b = a::B(2); 13 | ^ 14 | 15 = note: a tuple struct constructor is private if any of its fields is private 16 17error[E0603]: tuple struct `C` is private 18 --> $DIR/privacy5.rs:53:16 19 | 20LL | let c = a::C(2, 3); 21 | ^ 22 | 23 = note: a tuple struct constructor is private if any of its fields is private 24 25error[E0603]: tuple struct `A` is private 26 --> $DIR/privacy5.rs:56:12 27 | 28LL | let a::A(()) = a; 29 | ^ 30 | 31 = note: a tuple struct constructor is private if any of its fields is private 32 33error[E0603]: tuple struct `A` is private 34 --> $DIR/privacy5.rs:57:12 35 | 36LL | let a::A(_) = a; 37 | ^ 38 | 39 = note: a tuple struct constructor is private if any of its fields is private 40 41error[E0603]: tuple struct `A` is private 42 --> $DIR/privacy5.rs:58:18 43 | 44LL | match a { a::A(()) => {} } 45 | ^ 46 | 47 = note: a tuple struct constructor is private if any of its fields is private 48 49error[E0603]: tuple struct `A` is private 50 --> $DIR/privacy5.rs:59:18 51 | 52LL | match a { a::A(_) => {} } 53 | ^ 54 | 55 = note: a tuple struct constructor is private if any of its fields is private 56 57error[E0603]: tuple struct `B` is private 58 --> $DIR/privacy5.rs:61:12 59 | 60LL | let a::B(_) = b; 61 | ^ 62 | 63 = note: a tuple struct constructor is private if any of its fields is private 64 65error[E0603]: tuple struct `B` is private 66 --> $DIR/privacy5.rs:62:12 67 | 68LL | let a::B(_b) = b; 69 | ^ 70 | 71 = note: a tuple struct constructor is private if any of its fields is private 72 73error[E0603]: tuple struct `B` is private 74 --> $DIR/privacy5.rs:63:18 75 | 76LL | match b { a::B(_) => {} } 77 | ^ 78 | 79 = note: a tuple struct constructor is private if any of its fields is private 80 81error[E0603]: tuple struct `B` is private 82 --> $DIR/privacy5.rs:64:18 83 | 84LL | match b { a::B(_b) => {} } 85 | ^ 86 | 87 = note: a tuple struct constructor is private if any of its fields is private 88 89error[E0603]: tuple struct `B` is private 90 --> $DIR/privacy5.rs:65:18 91 | 92LL | match b { a::B(1) => {} a::B(_) => {} } 93 | ^ 94 | 95 = note: a tuple struct constructor is private if any of its fields is private 96 97error[E0603]: tuple struct `B` is private 98 --> $DIR/privacy5.rs:65:32 99 | 100LL | match b { a::B(1) => {} a::B(_) => {} } 101 | ^ 102 | 103 = note: a tuple struct constructor is private if any of its fields is private 104 105error[E0603]: tuple struct `C` is private 106 --> $DIR/privacy5.rs:68:12 107 | 108LL | let a::C(_, _) = c; 109 | ^ 110 | 111 = note: a tuple struct constructor is private if any of its fields is private 112 113error[E0603]: tuple struct `C` is private 114 --> $DIR/privacy5.rs:69:12 115 | 116LL | let a::C(_a, _) = c; 117 | ^ 118 | 119 = note: a tuple struct constructor is private if any of its fields is private 120 121error[E0603]: tuple struct `C` is private 122 --> $DIR/privacy5.rs:70:12 123 | 124LL | let a::C(_, _b) = c; 125 | ^ 126 | 127 = note: a tuple struct constructor is private if any of its fields is private 128 129error[E0603]: tuple struct `C` is private 130 --> $DIR/privacy5.rs:71:12 131 | 132LL | let a::C(_a, _b) = c; 133 | ^ 134 | 135 = note: a tuple struct constructor is private if any of its fields is private 136 137error[E0603]: tuple struct `C` is private 138 --> $DIR/privacy5.rs:72:18 139 | 140LL | match c { a::C(_, _) => {} } 141 | ^ 142 | 143 = note: a tuple struct constructor is private if any of its fields is private 144 145error[E0603]: tuple struct `C` is private 146 --> $DIR/privacy5.rs:73:18 147 | 148LL | match c { a::C(_a, _) => {} } 149 | ^ 150 | 151 = note: a tuple struct constructor is private if any of its fields is private 152 153error[E0603]: tuple struct `C` is private 154 --> $DIR/privacy5.rs:74:18 155 | 156LL | match c { a::C(_, _b) => {} } 157 | ^ 158 | 159 = note: a tuple struct constructor is private if any of its fields is private 160 161error[E0603]: tuple struct `C` is private 162 --> $DIR/privacy5.rs:75:18 163 | 164LL | match c { a::C(_a, _b) => {} } 165 | ^ 166 | 167 = note: a tuple struct constructor is private if any of its fields is private 168 169error[E0603]: tuple struct `A` is private 170 --> $DIR/privacy5.rs:83:17 171 | 172LL | let a2 = a::A; 173 | ^ 174 | 175 = note: a tuple struct constructor is private if any of its fields is private 176 177error[E0603]: tuple struct `B` is private 178 --> $DIR/privacy5.rs:84:17 179 | 180LL | let b2 = a::B; 181 | ^ 182 | 183 = note: a tuple struct constructor is private if any of its fields is private 184 185error[E0603]: tuple struct `C` is private 186 --> $DIR/privacy5.rs:85:17 187 | 188LL | let c2 = a::C; 189 | ^ 190 | 191 = note: a tuple struct constructor is private if any of its fields is private 192 193error[E0603]: tuple struct `A` is private 194 --> $DIR/privacy5.rs:90:20 195 | 196LL | let a = other::A(()); 197 | ^ 198 | 199 = note: a tuple struct constructor is private if any of its fields is private 200 201error[E0603]: tuple struct `B` is private 202 --> $DIR/privacy5.rs:91:20 203 | 204LL | let b = other::B(2); 205 | ^ 206 | 207 = note: a tuple struct constructor is private if any of its fields is private 208 209error[E0603]: tuple struct `C` is private 210 --> $DIR/privacy5.rs:92:20 211 | 212LL | let c = other::C(2, 3); 213 | ^ 214 | 215 = note: a tuple struct constructor is private if any of its fields is private 216 217error[E0603]: tuple struct `A` is private 218 --> $DIR/privacy5.rs:95:16 219 | 220LL | let other::A(()) = a; 221 | ^ 222 | 223 = note: a tuple struct constructor is private if any of its fields is private 224 225error[E0603]: tuple struct `A` is private 226 --> $DIR/privacy5.rs:96:16 227 | 228LL | let other::A(_) = a; 229 | ^ 230 | 231 = note: a tuple struct constructor is private if any of its fields is private 232 233error[E0603]: tuple struct `A` is private 234 --> $DIR/privacy5.rs:97:22 235 | 236LL | match a { other::A(()) => {} } 237 | ^ 238 | 239 = note: a tuple struct constructor is private if any of its fields is private 240 241error[E0603]: tuple struct `A` is private 242 --> $DIR/privacy5.rs:98:22 243 | 244LL | match a { other::A(_) => {} } 245 | ^ 246 | 247 = note: a tuple struct constructor is private if any of its fields is private 248 249error[E0603]: tuple struct `B` is private 250 --> $DIR/privacy5.rs:100:16 251 | 252LL | let other::B(_) = b; 253 | ^ 254 | 255 = note: a tuple struct constructor is private if any of its fields is private 256 257error[E0603]: tuple struct `B` is private 258 --> $DIR/privacy5.rs:101:16 259 | 260LL | let other::B(_b) = b; 261 | ^ 262 | 263 = note: a tuple struct constructor is private if any of its fields is private 264 265error[E0603]: tuple struct `B` is private 266 --> $DIR/privacy5.rs:102:22 267 | 268LL | match b { other::B(_) => {} } 269 | ^ 270 | 271 = note: a tuple struct constructor is private if any of its fields is private 272 273error[E0603]: tuple struct `B` is private 274 --> $DIR/privacy5.rs:103:22 275 | 276LL | match b { other::B(_b) => {} } 277 | ^ 278 | 279 = note: a tuple struct constructor is private if any of its fields is private 280 281error[E0603]: tuple struct `B` is private 282 --> $DIR/privacy5.rs:104:22 283 | 284LL | match b { other::B(1) => {} other::B(_) => {} } 285 | ^ 286 | 287 = note: a tuple struct constructor is private if any of its fields is private 288 289error[E0603]: tuple struct `B` is private 290 --> $DIR/privacy5.rs:104:40 291 | 292LL | match b { other::B(1) => {} other::B(_) => {} } 293 | ^ 294 | 295 = note: a tuple struct constructor is private if any of its fields is private 296 297error[E0603]: tuple struct `C` is private 298 --> $DIR/privacy5.rs:107:16 299 | 300LL | let other::C(_, _) = c; 301 | ^ 302 | 303 = note: a tuple struct constructor is private if any of its fields is private 304 305error[E0603]: tuple struct `C` is private 306 --> $DIR/privacy5.rs:108:16 307 | 308LL | let other::C(_a, _) = c; 309 | ^ 310 | 311 = note: a tuple struct constructor is private if any of its fields is private 312 313error[E0603]: tuple struct `C` is private 314 --> $DIR/privacy5.rs:109:16 315 | 316LL | let other::C(_, _b) = c; 317 | ^ 318 | 319 = note: a tuple struct constructor is private if any of its fields is private 320 321error[E0603]: tuple struct `C` is private 322 --> $DIR/privacy5.rs:110:16 323 | 324LL | let other::C(_a, _b) = c; 325 | ^ 326 | 327 = note: a tuple struct constructor is private if any of its fields is private 328 329error[E0603]: tuple struct `C` is private 330 --> $DIR/privacy5.rs:111:22 331 | 332LL | match c { other::C(_, _) => {} } 333 | ^ 334 | 335 = note: a tuple struct constructor is private if any of its fields is private 336 337error[E0603]: tuple struct `C` is private 338 --> $DIR/privacy5.rs:112:22 339 | 340LL | match c { other::C(_a, _) => {} } 341 | ^ 342 | 343 = note: a tuple struct constructor is private if any of its fields is private 344 345error[E0603]: tuple struct `C` is private 346 --> $DIR/privacy5.rs:113:22 347 | 348LL | match c { other::C(_, _b) => {} } 349 | ^ 350 | 351 = note: a tuple struct constructor is private if any of its fields is private 352 353error[E0603]: tuple struct `C` is private 354 --> $DIR/privacy5.rs:114:22 355 | 356LL | match c { other::C(_a, _b) => {} } 357 | ^ 358 | 359 = note: a tuple struct constructor is private if any of its fields is private 360 361error[E0603]: tuple struct `A` is private 362 --> $DIR/privacy5.rs:122:21 363 | 364LL | let a2 = other::A; 365 | ^ 366 | 367 = note: a tuple struct constructor is private if any of its fields is private 368 369error[E0603]: tuple struct `B` is private 370 --> $DIR/privacy5.rs:123:21 371 | 372LL | let b2 = other::B; 373 | ^ 374 | 375 = note: a tuple struct constructor is private if any of its fields is private 376 377error[E0603]: tuple struct `C` is private 378 --> $DIR/privacy5.rs:124:21 379 | 380LL | let c2 = other::C; 381 | ^ 382 | 383 = note: a tuple struct constructor is private if any of its fields is private 384 385error: aborting due to 48 previous errors 386 387For more information about this error, try `rustc --explain E0603`.