1 error[E0423]: expected value, found struct `Z`
2 --> $DIR/privacy-struct-ctor.rs:20:9
7 | constructor is not visible here due to private fields
8 | help: a tuple struct with a similar name exists: `S`
10 error[E0423]: expected value, found struct `S`
11 --> $DIR/privacy-struct-ctor.rs:33:5
14 | ^ constructor is not visible here due to private fields
16 error[E0423]: expected value, found struct `S2`
17 --> $DIR/privacy-struct-ctor.rs:38:5
20 | ^^ did you mean `S2 { /* fields */ }`?
22 error[E0423]: expected value, found struct `xcrate::S`
23 --> $DIR/privacy-struct-ctor.rs:43:5
26 | ^^^^^^^^^ constructor is not visible here due to private fields
27 help: possible better candidate is found in another module, you can import it into scope
32 error[E0603]: tuple struct `Z` is private
33 --> $DIR/privacy-struct-ctor.rs:18:12
38 error[E0603]: tuple struct `S` is private
39 --> $DIR/privacy-struct-ctor.rs:29:8
44 error[E0603]: tuple struct `S` is private
45 --> $DIR/privacy-struct-ctor.rs:31:19
47 LL | let _: S = m::S(2);
50 error[E0603]: tuple struct `Z` is private
51 --> $DIR/privacy-struct-ctor.rs:35:11
56 error[E0603]: tuple struct `S` is private
57 --> $DIR/privacy-struct-ctor.rs:41:16
62 error[E0603]: tuple struct `Z` is private
63 --> $DIR/privacy-struct-ctor.rs:45:19
68 error: aborting due to 10 previous errors
70 Some errors have detailed explanations: E0423, E0603.
71 For more information about an error, try `rustc --explain E0423`.