@@ -7,7 +7,7 @@ LL | n::Z;
77note: the enum is defined here
88 --> $DIR/privacy-enum-ctor.rs:11:9
99 |
10- LL | / pub(in m) enum Z {
10+ LL | / pub(in crate:: m) enum Z {
1111LL | | Fn(u8),
1212LL | | Struct {
1313LL | | s: u8,
@@ -35,7 +35,7 @@ LL | Z;
3535note: the enum is defined here
3636 --> $DIR/privacy-enum-ctor.rs:11:9
3737 |
38- LL | / pub(in m) enum Z {
38+ LL | / pub(in crate:: m) enum Z {
3939LL | | Fn(u8),
4040LL | | Struct {
4141LL | | s: u8,
@@ -154,8 +154,8 @@ LL | let _: Z = m::n::Z;
154154note: enum `m::Z` exists but is inaccessible
155155 --> $DIR/privacy-enum-ctor.rs:11:9
156156 |
157- LL | pub(in m) enum Z {
158- | ^^^^^^^^^^^^^^^^ not accessible
157+ LL | pub(in crate:: m) enum Z {
158+ | ^^^^^^^^^^^^^^^^^^^^^^^ not accessible
159159
160160error[E0423]: expected value, found enum `m::n::Z`
161161 --> $DIR/privacy-enum-ctor.rs:57:16
@@ -166,7 +166,7 @@ LL | let _: Z = m::n::Z;
166166note: the enum is defined here
167167 --> $DIR/privacy-enum-ctor.rs:11:9
168168 |
169- LL | / pub(in m) enum Z {
169+ LL | / pub(in crate:: m) enum Z {
170170LL | | Fn(u8),
171171LL | | Struct {
172172LL | | s: u8,
@@ -197,8 +197,8 @@ LL | let _: Z = m::n::Z::Fn;
197197note: enum `m::Z` exists but is inaccessible
198198 --> $DIR/privacy-enum-ctor.rs:11:9
199199 |
200- LL | pub(in m) enum Z {
201- | ^^^^^^^^^^^^^^^^ not accessible
200+ LL | pub(in crate:: m) enum Z {
201+ | ^^^^^^^^^^^^^^^^^^^^^^^ not accessible
202202
203203error[E0412]: cannot find type `Z` in this scope
204204 --> $DIR/privacy-enum-ctor.rs:64:12
@@ -212,8 +212,8 @@ LL | let _: Z = m::n::Z::Struct;
212212note: enum `m::Z` exists but is inaccessible
213213 --> $DIR/privacy-enum-ctor.rs:11:9
214214 |
215- LL | pub(in m) enum Z {
216- | ^^^^^^^^^^^^^^^^ not accessible
215+ LL | pub(in crate:: m) enum Z {
216+ | ^^^^^^^^^^^^^^^^^^^^^^^ not accessible
217217
218218error[E0412]: cannot find type `Z` in this scope
219219 --> $DIR/privacy-enum-ctor.rs:68:12
@@ -227,8 +227,8 @@ LL | let _: Z = m::n::Z::Unit {};
227227note: enum `m::Z` exists but is inaccessible
228228 --> $DIR/privacy-enum-ctor.rs:11:9
229229 |
230- LL | pub(in m) enum Z {
231- | ^^^^^^^^^^^^^^^^ not accessible
230+ LL | pub(in crate:: m) enum Z {
231+ | ^^^^^^^^^^^^^^^^^^^^^^^ not accessible
232232
233233error[E0603]: enum `Z` is private
234234 --> $DIR/privacy-enum-ctor.rs:57:22
@@ -239,8 +239,8 @@ LL | let _: Z = m::n::Z;
239239note: the enum `Z` is defined here
240240 --> $DIR/privacy-enum-ctor.rs:11:9
241241 |
242- LL | pub(in m) enum Z {
243- | ^^^^^^^^^^^^^^^^
242+ LL | pub(in crate:: m) enum Z {
243+ | ^^^^^^^^^^^^^^^^^^^^^^^
244244
245245error[E0603]: enum `Z` is private
246246 --> $DIR/privacy-enum-ctor.rs:61:22
@@ -253,8 +253,8 @@ LL | let _: Z = m::n::Z::Fn;
253253note: the enum `Z` is defined here
254254 --> $DIR/privacy-enum-ctor.rs:11:9
255255 |
256- LL | pub(in m) enum Z {
257- | ^^^^^^^^^^^^^^^^
256+ LL | pub(in crate:: m) enum Z {
257+ | ^^^^^^^^^^^^^^^^^^^^^^^
258258
259259error[E0603]: enum `Z` is private
260260 --> $DIR/privacy-enum-ctor.rs:64:22
@@ -265,8 +265,8 @@ LL | let _: Z = m::n::Z::Struct;
265265note: the enum `Z` is defined here
266266 --> $DIR/privacy-enum-ctor.rs:11:9
267267 |
268- LL | pub(in m) enum Z {
269- | ^^^^^^^^^^^^^^^^
268+ LL | pub(in crate:: m) enum Z {
269+ | ^^^^^^^^^^^^^^^^^^^^^^^
270270
271271error[E0603]: enum `Z` is private
272272 --> $DIR/privacy-enum-ctor.rs:68:22
@@ -279,8 +279,8 @@ LL | let _: Z = m::n::Z::Unit {};
279279note: the enum `Z` is defined here
280280 --> $DIR/privacy-enum-ctor.rs:11:9
281281 |
282- LL | pub(in m) enum Z {
283- | ^^^^^^^^^^^^^^^^
282+ LL | pub(in crate:: m) enum Z {
283+ | ^^^^^^^^^^^^^^^^^^^^^^^
284284
285285error[E0308]: mismatched types
286286 --> $DIR/privacy-enum-ctor.rs:27:20
0 commit comments