@@ -12,6 +12,10 @@ note: the tuple struct constructor `A` is defined here
12
12
|
13
13
LL | pub struct A(());
14
14
| ^^^^^^^^^^^^^^^^^
15
+ help: consider making the field publicly accessible
16
+ |
17
+ LL | pub struct A(pub ());
18
+ | +++
15
19
16
20
error[E0603]: tuple struct constructor `B` is private
17
21
--> $DIR/privacy5.rs:52:16
@@ -27,6 +31,10 @@ note: the tuple struct constructor `B` is defined here
27
31
|
28
32
LL | pub struct B(isize);
29
33
| ^^^^^^^^^^^^^^^^^^^^
34
+ help: consider making the field publicly accessible
35
+ |
36
+ LL | pub struct B(pub isize);
37
+ | +++
30
38
31
39
error[E0603]: tuple struct constructor `C` is private
32
40
--> $DIR/privacy5.rs:53:16
@@ -42,6 +50,10 @@ note: the tuple struct constructor `C` is defined here
42
50
|
43
51
LL | pub struct C(pub isize, isize);
44
52
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53
+ help: consider making the fields publicly accessible
54
+ |
55
+ LL | pub struct C(pub isize, pub isize);
56
+ | ~~~ +++
45
57
46
58
error[E0603]: tuple struct constructor `A` is private
47
59
--> $DIR/privacy5.rs:56:12
@@ -57,6 +69,10 @@ note: the tuple struct constructor `A` is defined here
57
69
|
58
70
LL | pub struct A(());
59
71
| ^^^^^^^^^^^^^^^^^
72
+ help: consider making the field publicly accessible
73
+ |
74
+ LL | pub struct A(pub ());
75
+ | +++
60
76
61
77
error[E0603]: tuple struct constructor `A` is private
62
78
--> $DIR/privacy5.rs:57:12
@@ -72,6 +88,10 @@ note: the tuple struct constructor `A` is defined here
72
88
|
73
89
LL | pub struct A(());
74
90
| ^^^^^^^^^^^^^^^^^
91
+ help: consider making the field publicly accessible
92
+ |
93
+ LL | pub struct A(pub ());
94
+ | +++
75
95
76
96
error[E0603]: tuple struct constructor `A` is private
77
97
--> $DIR/privacy5.rs:58:18
@@ -87,6 +107,10 @@ note: the tuple struct constructor `A` is defined here
87
107
|
88
108
LL | pub struct A(());
89
109
| ^^^^^^^^^^^^^^^^^
110
+ help: consider making the field publicly accessible
111
+ |
112
+ LL | pub struct A(pub ());
113
+ | +++
90
114
91
115
error[E0603]: tuple struct constructor `A` is private
92
116
--> $DIR/privacy5.rs:59:18
@@ -102,6 +126,10 @@ note: the tuple struct constructor `A` is defined here
102
126
|
103
127
LL | pub struct A(());
104
128
| ^^^^^^^^^^^^^^^^^
129
+ help: consider making the field publicly accessible
130
+ |
131
+ LL | pub struct A(pub ());
132
+ | +++
105
133
106
134
error[E0603]: tuple struct constructor `B` is private
107
135
--> $DIR/privacy5.rs:61:12
@@ -117,6 +145,10 @@ note: the tuple struct constructor `B` is defined here
117
145
|
118
146
LL | pub struct B(isize);
119
147
| ^^^^^^^^^^^^^^^^^^^^
148
+ help: consider making the field publicly accessible
149
+ |
150
+ LL | pub struct B(pub isize);
151
+ | +++
120
152
121
153
error[E0603]: tuple struct constructor `B` is private
122
154
--> $DIR/privacy5.rs:62:12
@@ -132,6 +164,10 @@ note: the tuple struct constructor `B` is defined here
132
164
|
133
165
LL | pub struct B(isize);
134
166
| ^^^^^^^^^^^^^^^^^^^^
167
+ help: consider making the field publicly accessible
168
+ |
169
+ LL | pub struct B(pub isize);
170
+ | +++
135
171
136
172
error[E0603]: tuple struct constructor `B` is private
137
173
--> $DIR/privacy5.rs:63:18
@@ -147,6 +183,10 @@ note: the tuple struct constructor `B` is defined here
147
183
|
148
184
LL | pub struct B(isize);
149
185
| ^^^^^^^^^^^^^^^^^^^^
186
+ help: consider making the field publicly accessible
187
+ |
188
+ LL | pub struct B(pub isize);
189
+ | +++
150
190
151
191
error[E0603]: tuple struct constructor `B` is private
152
192
--> $DIR/privacy5.rs:64:18
@@ -162,6 +202,10 @@ note: the tuple struct constructor `B` is defined here
162
202
|
163
203
LL | pub struct B(isize);
164
204
| ^^^^^^^^^^^^^^^^^^^^
205
+ help: consider making the field publicly accessible
206
+ |
207
+ LL | pub struct B(pub isize);
208
+ | +++
165
209
166
210
error[E0603]: tuple struct constructor `B` is private
167
211
--> $DIR/privacy5.rs:65:18
@@ -177,6 +221,10 @@ note: the tuple struct constructor `B` is defined here
177
221
|
178
222
LL | pub struct B(isize);
179
223
| ^^^^^^^^^^^^^^^^^^^^
224
+ help: consider making the field publicly accessible
225
+ |
226
+ LL | pub struct B(pub isize);
227
+ | +++
180
228
181
229
error[E0603]: tuple struct constructor `B` is private
182
230
--> $DIR/privacy5.rs:65:32
@@ -192,6 +240,10 @@ note: the tuple struct constructor `B` is defined here
192
240
|
193
241
LL | pub struct B(isize);
194
242
| ^^^^^^^^^^^^^^^^^^^^
243
+ help: consider making the field publicly accessible
244
+ |
245
+ LL | pub struct B(pub isize);
246
+ | +++
195
247
196
248
error[E0603]: tuple struct constructor `C` is private
197
249
--> $DIR/privacy5.rs:68:12
@@ -207,6 +259,10 @@ note: the tuple struct constructor `C` is defined here
207
259
|
208
260
LL | pub struct C(pub isize, isize);
209
261
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
262
+ help: consider making the fields publicly accessible
263
+ |
264
+ LL | pub struct C(pub isize, pub isize);
265
+ | ~~~ +++
210
266
211
267
error[E0603]: tuple struct constructor `C` is private
212
268
--> $DIR/privacy5.rs:69:12
@@ -222,6 +278,10 @@ note: the tuple struct constructor `C` is defined here
222
278
|
223
279
LL | pub struct C(pub isize, isize);
224
280
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
281
+ help: consider making the fields publicly accessible
282
+ |
283
+ LL | pub struct C(pub isize, pub isize);
284
+ | ~~~ +++
225
285
226
286
error[E0603]: tuple struct constructor `C` is private
227
287
--> $DIR/privacy5.rs:70:12
@@ -237,6 +297,10 @@ note: the tuple struct constructor `C` is defined here
237
297
|
238
298
LL | pub struct C(pub isize, isize);
239
299
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
300
+ help: consider making the fields publicly accessible
301
+ |
302
+ LL | pub struct C(pub isize, pub isize);
303
+ | ~~~ +++
240
304
241
305
error[E0603]: tuple struct constructor `C` is private
242
306
--> $DIR/privacy5.rs:71:12
@@ -252,6 +316,10 @@ note: the tuple struct constructor `C` is defined here
252
316
|
253
317
LL | pub struct C(pub isize, isize);
254
318
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
319
+ help: consider making the fields publicly accessible
320
+ |
321
+ LL | pub struct C(pub isize, pub isize);
322
+ | ~~~ +++
255
323
256
324
error[E0603]: tuple struct constructor `C` is private
257
325
--> $DIR/privacy5.rs:72:18
@@ -267,6 +335,10 @@ note: the tuple struct constructor `C` is defined here
267
335
|
268
336
LL | pub struct C(pub isize, isize);
269
337
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
338
+ help: consider making the fields publicly accessible
339
+ |
340
+ LL | pub struct C(pub isize, pub isize);
341
+ | ~~~ +++
270
342
271
343
error[E0603]: tuple struct constructor `C` is private
272
344
--> $DIR/privacy5.rs:73:18
@@ -282,6 +354,10 @@ note: the tuple struct constructor `C` is defined here
282
354
|
283
355
LL | pub struct C(pub isize, isize);
284
356
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
357
+ help: consider making the fields publicly accessible
358
+ |
359
+ LL | pub struct C(pub isize, pub isize);
360
+ | ~~~ +++
285
361
286
362
error[E0603]: tuple struct constructor `C` is private
287
363
--> $DIR/privacy5.rs:74:18
@@ -297,6 +373,10 @@ note: the tuple struct constructor `C` is defined here
297
373
|
298
374
LL | pub struct C(pub isize, isize);
299
375
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
376
+ help: consider making the fields publicly accessible
377
+ |
378
+ LL | pub struct C(pub isize, pub isize);
379
+ | ~~~ +++
300
380
301
381
error[E0603]: tuple struct constructor `C` is private
302
382
--> $DIR/privacy5.rs:75:18
@@ -312,6 +392,10 @@ note: the tuple struct constructor `C` is defined here
312
392
|
313
393
LL | pub struct C(pub isize, isize);
314
394
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
395
+ help: consider making the fields publicly accessible
396
+ |
397
+ LL | pub struct C(pub isize, pub isize);
398
+ | ~~~ +++
315
399
316
400
error[E0603]: tuple struct constructor `A` is private
317
401
--> $DIR/privacy5.rs:83:17
@@ -327,6 +411,10 @@ note: the tuple struct constructor `A` is defined here
327
411
|
328
412
LL | pub struct A(());
329
413
| ^^^^^^^^^^^^^^^^^
414
+ help: consider making the field publicly accessible
415
+ |
416
+ LL | pub struct A(pub ());
417
+ | +++
330
418
331
419
error[E0603]: tuple struct constructor `B` is private
332
420
--> $DIR/privacy5.rs:84:17
@@ -342,6 +430,10 @@ note: the tuple struct constructor `B` is defined here
342
430
|
343
431
LL | pub struct B(isize);
344
432
| ^^^^^^^^^^^^^^^^^^^^
433
+ help: consider making the field publicly accessible
434
+ |
435
+ LL | pub struct B(pub isize);
436
+ | +++
345
437
346
438
error[E0603]: tuple struct constructor `C` is private
347
439
--> $DIR/privacy5.rs:85:17
@@ -357,6 +449,10 @@ note: the tuple struct constructor `C` is defined here
357
449
|
358
450
LL | pub struct C(pub isize, isize);
359
451
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
452
+ help: consider making the fields publicly accessible
453
+ |
454
+ LL | pub struct C(pub isize, pub isize);
455
+ | ~~~ +++
360
456
361
457
error[E0603]: tuple struct constructor `A` is private
362
458
--> $DIR/privacy5.rs:90:20
0 commit comments