@@ -7,7 +7,7 @@ LL | n::Z;
7
7
note: the enum is defined here
8
8
--> $DIR/privacy-enum-ctor.rs:11:9
9
9
|
10
- LL | / pub(in m) enum Z {
10
+ LL | / pub(in crate:: m) enum Z {
11
11
LL | | Fn(u8),
12
12
LL | | Struct {
13
13
LL | | s: u8,
@@ -35,7 +35,7 @@ LL | Z;
35
35
note: the enum is defined here
36
36
--> $DIR/privacy-enum-ctor.rs:11:9
37
37
|
38
- LL | / pub(in m) enum Z {
38
+ LL | / pub(in crate:: m) enum Z {
39
39
LL | | Fn(u8),
40
40
LL | | Struct {
41
41
LL | | s: u8,
@@ -154,8 +154,8 @@ LL | let _: Z = m::n::Z;
154
154
note: enum `m::Z` exists but is inaccessible
155
155
--> $DIR/privacy-enum-ctor.rs:11:9
156
156
|
157
- LL | pub(in m) enum Z {
158
- | ^^^^^^^^^^^^^^^^ not accessible
157
+ LL | pub(in crate:: m) enum Z {
158
+ | ^^^^^^^^^^^^^^^^^^^^^^^ not accessible
159
159
160
160
error[E0423]: expected value, found enum `m::n::Z`
161
161
--> $DIR/privacy-enum-ctor.rs:57:16
@@ -166,7 +166,7 @@ LL | let _: Z = m::n::Z;
166
166
note: the enum is defined here
167
167
--> $DIR/privacy-enum-ctor.rs:11:9
168
168
|
169
- LL | / pub(in m) enum Z {
169
+ LL | / pub(in crate:: m) enum Z {
170
170
LL | | Fn(u8),
171
171
LL | | Struct {
172
172
LL | | s: u8,
@@ -197,8 +197,8 @@ LL | let _: Z = m::n::Z::Fn;
197
197
note: enum `m::Z` exists but is inaccessible
198
198
--> $DIR/privacy-enum-ctor.rs:11:9
199
199
|
200
- LL | pub(in m) enum Z {
201
- | ^^^^^^^^^^^^^^^^ not accessible
200
+ LL | pub(in crate:: m) enum Z {
201
+ | ^^^^^^^^^^^^^^^^^^^^^^^ not accessible
202
202
203
203
error[E0412]: cannot find type `Z` in this scope
204
204
--> $DIR/privacy-enum-ctor.rs:64:12
@@ -212,8 +212,8 @@ LL | let _: Z = m::n::Z::Struct;
212
212
note: enum `m::Z` exists but is inaccessible
213
213
--> $DIR/privacy-enum-ctor.rs:11:9
214
214
|
215
- LL | pub(in m) enum Z {
216
- | ^^^^^^^^^^^^^^^^ not accessible
215
+ LL | pub(in crate:: m) enum Z {
216
+ | ^^^^^^^^^^^^^^^^^^^^^^^ not accessible
217
217
218
218
error[E0412]: cannot find type `Z` in this scope
219
219
--> $DIR/privacy-enum-ctor.rs:68:12
@@ -227,8 +227,8 @@ LL | let _: Z = m::n::Z::Unit {};
227
227
note: enum `m::Z` exists but is inaccessible
228
228
--> $DIR/privacy-enum-ctor.rs:11:9
229
229
|
230
- LL | pub(in m) enum Z {
231
- | ^^^^^^^^^^^^^^^^ not accessible
230
+ LL | pub(in crate:: m) enum Z {
231
+ | ^^^^^^^^^^^^^^^^^^^^^^^ not accessible
232
232
233
233
error[E0603]: enum `Z` is private
234
234
--> $DIR/privacy-enum-ctor.rs:57:22
@@ -239,8 +239,8 @@ LL | let _: Z = m::n::Z;
239
239
note: the enum `Z` is defined here
240
240
--> $DIR/privacy-enum-ctor.rs:11:9
241
241
|
242
- LL | pub(in m) enum Z {
243
- | ^^^^^^^^^^^^^^^^
242
+ LL | pub(in crate:: m) enum Z {
243
+ | ^^^^^^^^^^^^^^^^^^^^^^^
244
244
245
245
error[E0603]: enum `Z` is private
246
246
--> $DIR/privacy-enum-ctor.rs:61:22
@@ -253,8 +253,8 @@ LL | let _: Z = m::n::Z::Fn;
253
253
note: the enum `Z` is defined here
254
254
--> $DIR/privacy-enum-ctor.rs:11:9
255
255
|
256
- LL | pub(in m) enum Z {
257
- | ^^^^^^^^^^^^^^^^
256
+ LL | pub(in crate:: m) enum Z {
257
+ | ^^^^^^^^^^^^^^^^^^^^^^^
258
258
259
259
error[E0603]: enum `Z` is private
260
260
--> $DIR/privacy-enum-ctor.rs:64:22
@@ -265,8 +265,8 @@ LL | let _: Z = m::n::Z::Struct;
265
265
note: the enum `Z` is defined here
266
266
--> $DIR/privacy-enum-ctor.rs:11:9
267
267
|
268
- LL | pub(in m) enum Z {
269
- | ^^^^^^^^^^^^^^^^
268
+ LL | pub(in crate:: m) enum Z {
269
+ | ^^^^^^^^^^^^^^^^^^^^^^^
270
270
271
271
error[E0603]: enum `Z` is private
272
272
--> $DIR/privacy-enum-ctor.rs:68:22
@@ -279,8 +279,8 @@ LL | let _: Z = m::n::Z::Unit {};
279
279
note: the enum `Z` is defined here
280
280
--> $DIR/privacy-enum-ctor.rs:11:9
281
281
|
282
- LL | pub(in m) enum Z {
283
- | ^^^^^^^^^^^^^^^^
282
+ LL | pub(in crate:: m) enum Z {
283
+ | ^^^^^^^^^^^^^^^^^^^^^^^
284
284
285
285
error[E0308]: mismatched types
286
286
--> $DIR/privacy-enum-ctor.rs:27:20
0 commit comments