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