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