]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/privacy5.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / privacy / privacy5.stderr
1 error[E0603]: tuple struct `A` is private
2   --> $DIR/privacy5.rs:51:16
3    |
4 LL |     let a = a::A(()); //~ ERROR tuple struct `A` is private
5    |                ^
6
7 error[E0603]: tuple struct `B` is private
8   --> $DIR/privacy5.rs:52:16
9    |
10 LL |     let b = a::B(2); //~ ERROR tuple struct `B` is private
11    |                ^
12
13 error[E0603]: tuple struct `C` is private
14   --> $DIR/privacy5.rs:53:16
15    |
16 LL |     let c = a::C(2, 3); //~ ERROR tuple struct `C` is private
17    |                ^
18
19 error[E0603]: tuple struct `A` is private
20   --> $DIR/privacy5.rs:56:12
21    |
22 LL |     let a::A(()) = a; //~ ERROR tuple struct `A` is private
23    |            ^
24
25 error[E0603]: tuple struct `A` is private
26   --> $DIR/privacy5.rs:57:12
27    |
28 LL |     let a::A(_) = a; //~ ERROR tuple struct `A` is private
29    |            ^
30
31 error[E0603]: tuple struct `A` is private
32   --> $DIR/privacy5.rs:58:18
33    |
34 LL |     match a { a::A(()) => {} } //~ ERROR tuple struct `A` is private
35    |                  ^
36
37 error[E0603]: tuple struct `A` is private
38   --> $DIR/privacy5.rs:59:18
39    |
40 LL |     match a { a::A(_) => {} } //~ ERROR tuple struct `A` is private
41    |                  ^
42
43 error[E0603]: tuple struct `B` is private
44   --> $DIR/privacy5.rs:61:12
45    |
46 LL |     let a::B(_) = b; //~ ERROR tuple struct `B` is private
47    |            ^
48
49 error[E0603]: tuple struct `B` is private
50   --> $DIR/privacy5.rs:62:12
51    |
52 LL |     let a::B(_b) = b; //~ ERROR tuple struct `B` is private
53    |            ^
54
55 error[E0603]: tuple struct `B` is private
56   --> $DIR/privacy5.rs:63:18
57    |
58 LL |     match b { a::B(_) => {} } //~ ERROR tuple struct `B` is private
59    |                  ^
60
61 error[E0603]: tuple struct `B` is private
62   --> $DIR/privacy5.rs:64:18
63    |
64 LL |     match b { a::B(_b) => {} } //~ ERROR tuple struct `B` is private
65    |                  ^
66
67 error[E0603]: tuple struct `B` is private
68   --> $DIR/privacy5.rs:65:18
69    |
70 LL |     match b { a::B(1) => {} a::B(_) => {} } //~ ERROR tuple struct `B` is private
71    |                  ^
72
73 error[E0603]: tuple struct `B` is private
74   --> $DIR/privacy5.rs:65:32
75    |
76 LL |     match b { a::B(1) => {} a::B(_) => {} } //~ ERROR tuple struct `B` is private
77    |                                ^
78
79 error[E0603]: tuple struct `C` is private
80   --> $DIR/privacy5.rs:68:12
81    |
82 LL |     let a::C(_, _) = c; //~ ERROR tuple struct `C` is private
83    |            ^
84
85 error[E0603]: tuple struct `C` is private
86   --> $DIR/privacy5.rs:69:12
87    |
88 LL |     let a::C(_a, _) = c; //~ ERROR tuple struct `C` is private
89    |            ^
90
91 error[E0603]: tuple struct `C` is private
92   --> $DIR/privacy5.rs:70:12
93    |
94 LL |     let a::C(_, _b) = c; //~ ERROR tuple struct `C` is private
95    |            ^
96
97 error[E0603]: tuple struct `C` is private
98   --> $DIR/privacy5.rs:71:12
99    |
100 LL |     let a::C(_a, _b) = c; //~ ERROR tuple struct `C` is private
101    |            ^
102
103 error[E0603]: tuple struct `C` is private
104   --> $DIR/privacy5.rs:72:18
105    |
106 LL |     match c { a::C(_, _) => {} } //~ ERROR tuple struct `C` is private
107    |                  ^
108
109 error[E0603]: tuple struct `C` is private
110   --> $DIR/privacy5.rs:73:18
111    |
112 LL |     match c { a::C(_a, _) => {} } //~ ERROR tuple struct `C` is private
113    |                  ^
114
115 error[E0603]: tuple struct `C` is private
116   --> $DIR/privacy5.rs:74:18
117    |
118 LL |     match c { a::C(_, _b) => {} } //~ ERROR tuple struct `C` is private
119    |                  ^
120
121 error[E0603]: tuple struct `C` is private
122   --> $DIR/privacy5.rs:75:18
123    |
124 LL |     match c { a::C(_a, _b) => {} } //~ ERROR tuple struct `C` is private
125    |                  ^
126
127 error[E0603]: tuple struct `A` is private
128   --> $DIR/privacy5.rs:83:17
129    |
130 LL |     let a2 = a::A; //~ ERROR tuple struct `A` is private
131    |                 ^
132
133 error[E0603]: tuple struct `B` is private
134   --> $DIR/privacy5.rs:84:17
135    |
136 LL |     let b2 = a::B; //~ ERROR tuple struct `B` is private
137    |                 ^
138
139 error[E0603]: tuple struct `C` is private
140   --> $DIR/privacy5.rs:85:17
141    |
142 LL |     let c2 = a::C; //~ ERROR tuple struct `C` is private
143    |                 ^
144
145 error[E0603]: tuple struct `A` is private
146   --> $DIR/privacy5.rs:90:20
147    |
148 LL |     let a = other::A(()); //~ ERROR tuple struct `A` is private
149    |                    ^
150
151 error[E0603]: tuple struct `B` is private
152   --> $DIR/privacy5.rs:91:20
153    |
154 LL |     let b = other::B(2); //~ ERROR tuple struct `B` is private
155    |                    ^
156
157 error[E0603]: tuple struct `C` is private
158   --> $DIR/privacy5.rs:92:20
159    |
160 LL |     let c = other::C(2, 3); //~ ERROR tuple struct `C` is private
161    |                    ^
162
163 error[E0603]: tuple struct `A` is private
164   --> $DIR/privacy5.rs:95:16
165    |
166 LL |     let other::A(()) = a; //~ ERROR tuple struct `A` is private
167    |                ^
168
169 error[E0603]: tuple struct `A` is private
170   --> $DIR/privacy5.rs:96:16
171    |
172 LL |     let other::A(_) = a; //~ ERROR tuple struct `A` is private
173    |                ^
174
175 error[E0603]: tuple struct `A` is private
176   --> $DIR/privacy5.rs:97:22
177    |
178 LL |     match a { other::A(()) => {} } //~ ERROR tuple struct `A` is private
179    |                      ^
180
181 error[E0603]: tuple struct `A` is private
182   --> $DIR/privacy5.rs:98:22
183    |
184 LL |     match a { other::A(_) => {} } //~ ERROR tuple struct `A` is private
185    |                      ^
186
187 error[E0603]: tuple struct `B` is private
188   --> $DIR/privacy5.rs:100:16
189    |
190 LL |     let other::B(_) = b; //~ ERROR tuple struct `B` is private
191    |                ^
192
193 error[E0603]: tuple struct `B` is private
194   --> $DIR/privacy5.rs:101:16
195    |
196 LL |     let other::B(_b) = b; //~ ERROR tuple struct `B` is private
197    |                ^
198
199 error[E0603]: tuple struct `B` is private
200   --> $DIR/privacy5.rs:102:22
201    |
202 LL |     match b { other::B(_) => {} } //~ ERROR tuple struct `B` is private
203    |                      ^
204
205 error[E0603]: tuple struct `B` is private
206   --> $DIR/privacy5.rs:103:22
207    |
208 LL |     match b { other::B(_b) => {} } //~ ERROR tuple struct `B` is private
209    |                      ^
210
211 error[E0603]: tuple struct `B` is private
212   --> $DIR/privacy5.rs:104:22
213    |
214 LL |     match b { other::B(1) => {} other::B(_) => {} } //~ ERROR tuple struct `B` is private
215    |                      ^
216
217 error[E0603]: tuple struct `B` is private
218   --> $DIR/privacy5.rs:104:40
219    |
220 LL |     match b { other::B(1) => {} other::B(_) => {} } //~ ERROR tuple struct `B` is private
221    |                                        ^
222
223 error[E0603]: tuple struct `C` is private
224   --> $DIR/privacy5.rs:107:16
225    |
226 LL |     let other::C(_, _) = c; //~ ERROR tuple struct `C` is private
227    |                ^
228
229 error[E0603]: tuple struct `C` is private
230   --> $DIR/privacy5.rs:108:16
231    |
232 LL |     let other::C(_a, _) = c; //~ ERROR tuple struct `C` is private
233    |                ^
234
235 error[E0603]: tuple struct `C` is private
236   --> $DIR/privacy5.rs:109:16
237    |
238 LL |     let other::C(_, _b) = c; //~ ERROR tuple struct `C` is private
239    |                ^
240
241 error[E0603]: tuple struct `C` is private
242   --> $DIR/privacy5.rs:110:16
243    |
244 LL |     let other::C(_a, _b) = c; //~ ERROR tuple struct `C` is private
245    |                ^
246
247 error[E0603]: tuple struct `C` is private
248   --> $DIR/privacy5.rs:111:22
249    |
250 LL |     match c { other::C(_, _) => {} } //~ ERROR tuple struct `C` is private
251    |                      ^
252
253 error[E0603]: tuple struct `C` is private
254   --> $DIR/privacy5.rs:112:22
255    |
256 LL |     match c { other::C(_a, _) => {} } //~ ERROR tuple struct `C` is private
257    |                      ^
258
259 error[E0603]: tuple struct `C` is private
260   --> $DIR/privacy5.rs:113:22
261    |
262 LL |     match c { other::C(_, _b) => {} } //~ ERROR tuple struct `C` is private
263    |                      ^
264
265 error[E0603]: tuple struct `C` is private
266   --> $DIR/privacy5.rs:114:22
267    |
268 LL |     match c { other::C(_a, _b) => {} } //~ ERROR tuple struct `C` is private
269    |                      ^
270
271 error[E0603]: tuple struct `A` is private
272   --> $DIR/privacy5.rs:122:21
273    |
274 LL |     let a2 = other::A; //~ ERROR tuple struct `A` is private
275    |                     ^
276
277 error[E0603]: tuple struct `B` is private
278   --> $DIR/privacy5.rs:123:21
279    |
280 LL |     let b2 = other::B; //~ ERROR tuple struct `B` is private
281    |                     ^
282
283 error[E0603]: tuple struct `C` is private
284   --> $DIR/privacy5.rs:124:21
285    |
286 LL |     let c2 = other::C; //~ ERROR tuple struct `C` is private
287    |                     ^
288
289 error: aborting due to 48 previous errors
290
291 For more information about this error, try `rustc --explain E0603`.