1 error[E0423]: expected value, found enum `n::Z`
2 --> $DIR/privacy-enum-ctor.rs:33:9
7 = note: did you mean to use one of the following variants?
12 error[E0423]: expected value, found enum `Z`
13 --> $DIR/privacy-enum-ctor.rs:35:9
18 = note: did you mean to use one of the following variants?
23 error[E0423]: expected value, found struct variant `Z::Struct`
24 --> $DIR/privacy-enum-ctor.rs:39:20
26 LL | let _: Z = Z::Struct;
27 | ^^^^^^^^^ did you mean `Z::Struct { /* fields */ }`?
29 error[E0423]: expected value, found enum `m::E`
30 --> $DIR/privacy-enum-ctor.rs:51:16
37 = note: did you mean to use one of the following variants?
41 help: possible better candidates are found in other modules, you can import them into scope
43 LL | use std::f32::consts::E;
45 LL | use std::f64::consts::E;
48 error[E0423]: expected value, found struct variant `m::E::Struct`
49 --> $DIR/privacy-enum-ctor.rs:55:16
51 LL | let _: E = m::E::Struct;
52 | ^^^^^^^^^^^^ did you mean `m::E::Struct { /* fields */ }`?
54 error[E0423]: expected value, found enum `E`
55 --> $DIR/privacy-enum-ctor.rs:59:16
60 = note: did you mean to use one of the following variants?
64 help: possible better candidates are found in other modules, you can import them into scope
66 LL | use std::f32::consts::E;
68 LL | use std::f64::consts::E;
71 error[E0423]: expected value, found struct variant `E::Struct`
72 --> $DIR/privacy-enum-ctor.rs:63:16
74 LL | let _: E = E::Struct;
75 | ^^^^^^^^^ did you mean `E::Struct { /* fields */ }`?
77 error[E0412]: cannot find type `Z` in this scope
78 --> $DIR/privacy-enum-ctor.rs:67:12
80 LL | let _: Z = m::n::Z;
82 help: possible candidate is found in another module, you can import it into scope
87 error[E0423]: expected value, found enum `m::n::Z`
88 --> $DIR/privacy-enum-ctor.rs:67:16
90 LL | let _: Z = m::n::Z;
93 = note: did you mean to use one of the following variants?
98 error[E0412]: cannot find type `Z` in this scope
99 --> $DIR/privacy-enum-ctor.rs:71:12
101 LL | let _: Z = m::n::Z::Fn;
102 | ^ did you mean `E`?
103 help: possible candidate is found in another module, you can import it into scope
108 error[E0412]: cannot find type `Z` in this scope
109 --> $DIR/privacy-enum-ctor.rs:74:12
111 LL | let _: Z = m::n::Z::Struct;
112 | ^ did you mean `E`?
113 help: possible candidate is found in another module, you can import it into scope
118 error[E0423]: expected value, found struct variant `m::n::Z::Struct`
119 --> $DIR/privacy-enum-ctor.rs:74:16
121 LL | let _: Z = m::n::Z::Struct;
122 | ^^^^^^^^^^^^^^^ did you mean `m::n::Z::Struct { /* fields */ }`?
124 error[E0412]: cannot find type `Z` in this scope
125 --> $DIR/privacy-enum-ctor.rs:78:12
127 LL | let _: Z = m::n::Z::Unit {};
128 | ^ did you mean `E`?
129 help: possible candidate is found in another module, you can import it into scope
134 error[E0603]: enum `Z` is private
135 --> $DIR/privacy-enum-ctor.rs:67:16
137 LL | let _: Z = m::n::Z;
140 error[E0603]: enum `Z` is private
141 --> $DIR/privacy-enum-ctor.rs:71:16
143 LL | let _: Z = m::n::Z::Fn;
146 error[E0603]: enum `Z` is private
147 --> $DIR/privacy-enum-ctor.rs:74:16
149 LL | let _: Z = m::n::Z::Struct;
152 error[E0603]: enum `Z` is private
153 --> $DIR/privacy-enum-ctor.rs:78:16
155 LL | let _: Z = m::n::Z::Unit {};
158 error[E0308]: mismatched types
159 --> $DIR/privacy-enum-ctor.rs:37:20
161 LL | let _: Z = Z::Fn;
162 | ^^^^^ expected enum `m::n::Z`, found fn item
164 = note: expected type `m::n::Z`
165 found type `fn(u8) -> m::n::Z {m::n::Z::Fn}`
167 error[E0618]: expected function, found enum variant `Z::Unit`
168 --> $DIR/privacy-enum-ctor.rs:41:17
171 | ---- `Z::Unit` defined here
173 LL | let _ = Z::Unit();
174 | ^^^^^^^^^ not a function
175 help: `Z::Unit` is a unit variant, you need to write it without the parenthesis
177 LL | let _ = Z::Unit;
180 error[E0308]: mismatched types
181 --> $DIR/privacy-enum-ctor.rs:53:16
183 LL | let _: E = m::E::Fn;
184 | ^^^^^^^^ expected enum `m::E`, found fn item
186 = note: expected type `m::E`
187 found type `fn(u8) -> m::E {m::E::Fn}`
189 error[E0618]: expected function, found enum variant `m::E::Unit`
190 --> $DIR/privacy-enum-ctor.rs:57:16
193 | ---- `m::E::Unit` defined here
195 LL | let _: E = m::E::Unit();
196 | ^^^^^^^^^^^^ not a function
197 help: `m::E::Unit` is a unit variant, you need to write it without the parenthesis
199 LL | let _: E = m::E::Unit;
202 error[E0308]: mismatched types
203 --> $DIR/privacy-enum-ctor.rs:61:16
205 LL | let _: E = E::Fn;
206 | ^^^^^ expected enum `m::E`, found fn item
208 = note: expected type `m::E`
209 found type `fn(u8) -> m::E {m::E::Fn}`
211 error[E0618]: expected function, found enum variant `E::Unit`
212 --> $DIR/privacy-enum-ctor.rs:65:16
215 | ---- `E::Unit` defined here
217 LL | let _: E = E::Unit();
218 | ^^^^^^^^^ not a function
219 help: `E::Unit` is a unit variant, you need to write it without the parenthesis
221 LL | let _: E = E::Unit;
224 error: aborting due to 23 previous errors
226 Some errors occurred: E0308, E0412, E0423, E0603, E0618.
227 For more information about an error, try `rustc --explain E0308`.