@@ -12,6 +12,10 @@ note: the tuple struct constructor `A` is defined here
1212 |
1313LL | pub struct A(());
1414 | ^^^^^^^^^^^^^^^^^
15+ help: consider making the field publicly accessible
16+ |
17+ LL | pub struct A(pub ());
18+ | +++
1519
1620error[E0603]: tuple struct constructor `B` is private
1721 --> $DIR/privacy5.rs:52:16
@@ -27,6 +31,10 @@ note: the tuple struct constructor `B` is defined here
2731 |
2832LL | pub struct B(isize);
2933 | ^^^^^^^^^^^^^^^^^^^^
34+ help: consider making the field publicly accessible
35+ |
36+ LL | pub struct B(pub isize);
37+ | +++
3038
3139error[E0603]: tuple struct constructor `C` is private
3240 --> $DIR/privacy5.rs:53:16
@@ -42,6 +50,10 @@ note: the tuple struct constructor `C` is defined here
4250 |
4351LL | pub struct C(pub isize, isize);
4452 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53+ help: consider making the fields publicly accessible
54+ |
55+ LL | pub struct C(pub isize, pub isize);
56+ | ~~~ +++
4557
4658error[E0603]: tuple struct constructor `A` is private
4759 --> $DIR/privacy5.rs:56:12
@@ -57,6 +69,10 @@ note: the tuple struct constructor `A` is defined here
5769 |
5870LL | pub struct A(());
5971 | ^^^^^^^^^^^^^^^^^
72+ help: consider making the field publicly accessible
73+ |
74+ LL | pub struct A(pub ());
75+ | +++
6076
6177error[E0603]: tuple struct constructor `A` is private
6278 --> $DIR/privacy5.rs:57:12
@@ -72,6 +88,10 @@ note: the tuple struct constructor `A` is defined here
7288 |
7389LL | pub struct A(());
7490 | ^^^^^^^^^^^^^^^^^
91+ help: consider making the field publicly accessible
92+ |
93+ LL | pub struct A(pub ());
94+ | +++
7595
7696error[E0603]: tuple struct constructor `A` is private
7797 --> $DIR/privacy5.rs:58:18
@@ -87,6 +107,10 @@ note: the tuple struct constructor `A` is defined here
87107 |
88108LL | pub struct A(());
89109 | ^^^^^^^^^^^^^^^^^
110+ help: consider making the field publicly accessible
111+ |
112+ LL | pub struct A(pub ());
113+ | +++
90114
91115error[E0603]: tuple struct constructor `A` is private
92116 --> $DIR/privacy5.rs:59:18
@@ -102,6 +126,10 @@ note: the tuple struct constructor `A` is defined here
102126 |
103127LL | pub struct A(());
104128 | ^^^^^^^^^^^^^^^^^
129+ help: consider making the field publicly accessible
130+ |
131+ LL | pub struct A(pub ());
132+ | +++
105133
106134error[E0603]: tuple struct constructor `B` is private
107135 --> $DIR/privacy5.rs:61:12
@@ -117,6 +145,10 @@ note: the tuple struct constructor `B` is defined here
117145 |
118146LL | pub struct B(isize);
119147 | ^^^^^^^^^^^^^^^^^^^^
148+ help: consider making the field publicly accessible
149+ |
150+ LL | pub struct B(pub isize);
151+ | +++
120152
121153error[E0603]: tuple struct constructor `B` is private
122154 --> $DIR/privacy5.rs:62:12
@@ -132,6 +164,10 @@ note: the tuple struct constructor `B` is defined here
132164 |
133165LL | pub struct B(isize);
134166 | ^^^^^^^^^^^^^^^^^^^^
167+ help: consider making the field publicly accessible
168+ |
169+ LL | pub struct B(pub isize);
170+ | +++
135171
136172error[E0603]: tuple struct constructor `B` is private
137173 --> $DIR/privacy5.rs:63:18
@@ -147,6 +183,10 @@ note: the tuple struct constructor `B` is defined here
147183 |
148184LL | pub struct B(isize);
149185 | ^^^^^^^^^^^^^^^^^^^^
186+ help: consider making the field publicly accessible
187+ |
188+ LL | pub struct B(pub isize);
189+ | +++
150190
151191error[E0603]: tuple struct constructor `B` is private
152192 --> $DIR/privacy5.rs:64:18
@@ -162,6 +202,10 @@ note: the tuple struct constructor `B` is defined here
162202 |
163203LL | pub struct B(isize);
164204 | ^^^^^^^^^^^^^^^^^^^^
205+ help: consider making the field publicly accessible
206+ |
207+ LL | pub struct B(pub isize);
208+ | +++
165209
166210error[E0603]: tuple struct constructor `B` is private
167211 --> $DIR/privacy5.rs:65:18
@@ -177,6 +221,10 @@ note: the tuple struct constructor `B` is defined here
177221 |
178222LL | pub struct B(isize);
179223 | ^^^^^^^^^^^^^^^^^^^^
224+ help: consider making the field publicly accessible
225+ |
226+ LL | pub struct B(pub isize);
227+ | +++
180228
181229error[E0603]: tuple struct constructor `B` is private
182230 --> $DIR/privacy5.rs:65:32
@@ -192,6 +240,10 @@ note: the tuple struct constructor `B` is defined here
192240 |
193241LL | pub struct B(isize);
194242 | ^^^^^^^^^^^^^^^^^^^^
243+ help: consider making the field publicly accessible
244+ |
245+ LL | pub struct B(pub isize);
246+ | +++
195247
196248error[E0603]: tuple struct constructor `C` is private
197249 --> $DIR/privacy5.rs:68:12
@@ -207,6 +259,10 @@ note: the tuple struct constructor `C` is defined here
207259 |
208260LL | pub struct C(pub isize, isize);
209261 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
262+ help: consider making the fields publicly accessible
263+ |
264+ LL | pub struct C(pub isize, pub isize);
265+ | ~~~ +++
210266
211267error[E0603]: tuple struct constructor `C` is private
212268 --> $DIR/privacy5.rs:69:12
@@ -222,6 +278,10 @@ note: the tuple struct constructor `C` is defined here
222278 |
223279LL | pub struct C(pub isize, isize);
224280 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
281+ help: consider making the fields publicly accessible
282+ |
283+ LL | pub struct C(pub isize, pub isize);
284+ | ~~~ +++
225285
226286error[E0603]: tuple struct constructor `C` is private
227287 --> $DIR/privacy5.rs:70:12
@@ -237,6 +297,10 @@ note: the tuple struct constructor `C` is defined here
237297 |
238298LL | pub struct C(pub isize, isize);
239299 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
300+ help: consider making the fields publicly accessible
301+ |
302+ LL | pub struct C(pub isize, pub isize);
303+ | ~~~ +++
240304
241305error[E0603]: tuple struct constructor `C` is private
242306 --> $DIR/privacy5.rs:71:12
@@ -252,6 +316,10 @@ note: the tuple struct constructor `C` is defined here
252316 |
253317LL | pub struct C(pub isize, isize);
254318 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
319+ help: consider making the fields publicly accessible
320+ |
321+ LL | pub struct C(pub isize, pub isize);
322+ | ~~~ +++
255323
256324error[E0603]: tuple struct constructor `C` is private
257325 --> $DIR/privacy5.rs:72:18
@@ -267,6 +335,10 @@ note: the tuple struct constructor `C` is defined here
267335 |
268336LL | pub struct C(pub isize, isize);
269337 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
338+ help: consider making the fields publicly accessible
339+ |
340+ LL | pub struct C(pub isize, pub isize);
341+ | ~~~ +++
270342
271343error[E0603]: tuple struct constructor `C` is private
272344 --> $DIR/privacy5.rs:73:18
@@ -282,6 +354,10 @@ note: the tuple struct constructor `C` is defined here
282354 |
283355LL | pub struct C(pub isize, isize);
284356 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
357+ help: consider making the fields publicly accessible
358+ |
359+ LL | pub struct C(pub isize, pub isize);
360+ | ~~~ +++
285361
286362error[E0603]: tuple struct constructor `C` is private
287363 --> $DIR/privacy5.rs:74:18
@@ -297,6 +373,10 @@ note: the tuple struct constructor `C` is defined here
297373 |
298374LL | pub struct C(pub isize, isize);
299375 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
376+ help: consider making the fields publicly accessible
377+ |
378+ LL | pub struct C(pub isize, pub isize);
379+ | ~~~ +++
300380
301381error[E0603]: tuple struct constructor `C` is private
302382 --> $DIR/privacy5.rs:75:18
@@ -312,6 +392,10 @@ note: the tuple struct constructor `C` is defined here
312392 |
313393LL | pub struct C(pub isize, isize);
314394 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
395+ help: consider making the fields publicly accessible
396+ |
397+ LL | pub struct C(pub isize, pub isize);
398+ | ~~~ +++
315399
316400error[E0603]: tuple struct constructor `A` is private
317401 --> $DIR/privacy5.rs:83:17
@@ -327,6 +411,10 @@ note: the tuple struct constructor `A` is defined here
327411 |
328412LL | pub struct A(());
329413 | ^^^^^^^^^^^^^^^^^
414+ help: consider making the field publicly accessible
415+ |
416+ LL | pub struct A(pub ());
417+ | +++
330418
331419error[E0603]: tuple struct constructor `B` is private
332420 --> $DIR/privacy5.rs:84:17
@@ -342,6 +430,10 @@ note: the tuple struct constructor `B` is defined here
342430 |
343431LL | pub struct B(isize);
344432 | ^^^^^^^^^^^^^^^^^^^^
433+ help: consider making the field publicly accessible
434+ |
435+ LL | pub struct B(pub isize);
436+ | +++
345437
346438error[E0603]: tuple struct constructor `C` is private
347439 --> $DIR/privacy5.rs:85:17
@@ -357,6 +449,10 @@ note: the tuple struct constructor `C` is defined here
357449 |
358450LL | pub struct C(pub isize, isize);
359451 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
452+ help: consider making the fields publicly accessible
453+ |
454+ LL | pub struct C(pub isize, pub isize);
455+ | ~~~ +++
360456
361457error[E0603]: tuple struct constructor `A` is private
362458 --> $DIR/privacy5.rs:90:20
0 commit comments