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
16 error[E0423]: expected value, found struct `S`
17 --> $DIR/privacy-struct-ctor.rs:36:5
22 | did you mean `S { /* fields */ }`?
23 | constructor is not visible here due to private fields
25 help: possible better candidate is found in another module, you can import it into scope
30 error[E0423]: expected value, found struct `xcrate::S`
31 --> $DIR/privacy-struct-ctor.rs:42:5
36 | did you mean `xcrate::S { /* fields */ }`?
37 | constructor is not visible here due to private fields
39 help: possible better candidate is found in another module, you can import it into scope
44 error[E0603]: tuple struct `Z` is private
45 --> $DIR/privacy-struct-ctor.rs:25:9
47 25 | n::Z; //~ ERROR tuple struct `Z` is private
50 error[E0603]: tuple struct `S` is private
51 --> $DIR/privacy-struct-ctor.rs:35:5
53 35 | m::S; //~ ERROR tuple struct `S` is private
56 error[E0603]: tuple struct `Z` is private
57 --> $DIR/privacy-struct-ctor.rs:39:5
59 39 | m::n::Z; //~ ERROR tuple struct `Z` is private
62 error[E0603]: tuple struct `S` is private
63 --> $DIR/privacy-struct-ctor.rs:41:5
65 41 | xcrate::m::S; //~ ERROR tuple struct `S` is private
68 error[E0603]: tuple struct `Z` is private
69 --> $DIR/privacy-struct-ctor.rs:45:5
71 45 | xcrate::m::n::Z; //~ ERROR tuple struct `Z` is private
74 error: aborting due to 8 previous errors