1 error[E0423]: expected value, found struct `Z`
2 --> $DIR/privacy-struct-ctor.rs:26:9
7 | did you mean `Z { /* fields */ }`?
8 | constructor is not visible here due to private fields
10 = help: possible better candidate is found in another module, you can import it into scope:
13 error[E0423]: expected value, found struct `S`
14 --> $DIR/privacy-struct-ctor.rs:36:5
19 | did you mean `S { /* fields */ }`?
20 | constructor is not visible here due to private fields
22 = help: possible better candidate is found in another module, you can import it into scope:
25 error[E0423]: expected value, found struct `xcrate::S`
26 --> $DIR/privacy-struct-ctor.rs:42:5
31 | did you mean `xcrate::S { /* fields */ }`?
32 | constructor is not visible here due to private fields
34 = help: possible better candidate is found in another module, you can import it into scope:
37 error: tuple struct `Z` is private
38 --> $DIR/privacy-struct-ctor.rs:25:9
40 25 | n::Z; //~ ERROR tuple struct `Z` is private
43 error: tuple struct `S` is private
44 --> $DIR/privacy-struct-ctor.rs:35:5
46 35 | m::S; //~ ERROR tuple struct `S` is private
49 error: tuple struct `Z` is private
50 --> $DIR/privacy-struct-ctor.rs:39:5
52 39 | m::n::Z; //~ ERROR tuple struct `Z` is private
55 error: tuple struct `S` is private
56 --> $DIR/privacy-struct-ctor.rs:41:5
58 41 | xcrate::m::S; //~ ERROR tuple struct `S` is private
61 error: tuple struct `Z` is private
62 --> $DIR/privacy-struct-ctor.rs:45:5
64 45 | xcrate::m::n::Z; //~ ERROR tuple struct `Z` is private
67 error: aborting due to 8 previous errors