1 error[E0423]: expected value, found struct `Z`
2 --> $DIR/privacy-struct-ctor.rs:26:9
7 | did you mean `Z { /* fields */ }`?
9 | constructor is not visible here due to private fields
11 help: possible better candidate is found in another module, you can import it into scope
14 error[E0423]: expected value, found struct `S`
15 --> $DIR/privacy-struct-ctor.rs:36:5
20 | did you mean `S { /* fields */ }`?
21 | constructor is not visible here due to private fields
23 help: possible better candidate is found in another module, you can import it into scope
26 error[E0423]: expected value, found struct `xcrate::S`
27 --> $DIR/privacy-struct-ctor.rs:42:5
32 | did you mean `xcrate::S { /* fields */ }`?
33 | constructor is not visible here due to private fields
35 help: possible better candidate is found in another module, you can import it into scope
38 error[E0603]: tuple struct `Z` is private
39 --> $DIR/privacy-struct-ctor.rs:25:9
41 25 | n::Z; //~ ERROR tuple struct `Z` is private
44 error[E0603]: tuple struct `S` is private
45 --> $DIR/privacy-struct-ctor.rs:35:5
47 35 | m::S; //~ ERROR tuple struct `S` is private
50 error[E0603]: tuple struct `Z` is private
51 --> $DIR/privacy-struct-ctor.rs:39:5
53 39 | m::n::Z; //~ ERROR tuple struct `Z` is private
56 error[E0603]: tuple struct `S` is private
57 --> $DIR/privacy-struct-ctor.rs:41:5
59 41 | xcrate::m::S; //~ ERROR tuple struct `S` is private
62 error[E0603]: tuple struct `Z` is private
63 --> $DIR/privacy-struct-ctor.rs:45:5
65 45 | xcrate::m::n::Z; //~ ERROR tuple struct `Z` is private
68 error: aborting due to previous error(s)