1 error[E0423]: expected value, found struct `Z`
2 --> $DIR/privacy-struct-ctor.rs:30:9
8 | constructor is not visible here due to private fields
9 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:43:5
18 | ^ constructor is not visible here due to private fields
19 help: possible better candidate is found in another module, you can import it into scope
24 error[E0423]: expected value, found struct `S2`
25 --> $DIR/privacy-struct-ctor.rs:48:5
28 | ^^ did you mean `S2 { /* fields */ }`?
30 error[E0423]: expected value, found struct `xcrate::S`
31 --> $DIR/privacy-struct-ctor.rs:53:5
34 | ^^^^^^^^^ 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
40 error[E0603]: tuple struct `Z` is private
41 --> $DIR/privacy-struct-ctor.rs:28:9
46 error[E0603]: tuple struct `S` is private
47 --> $DIR/privacy-struct-ctor.rs:39:5
52 error[E0603]: tuple struct `S` is private
53 --> $DIR/privacy-struct-ctor.rs:41:16
55 LL | let _: S = m::S(2);
58 error[E0603]: tuple struct `Z` is private
59 --> $DIR/privacy-struct-ctor.rs:45:5
64 error[E0603]: tuple struct `S` is private
65 --> $DIR/privacy-struct-ctor.rs:51:5
70 error[E0603]: tuple struct `Z` is private
71 --> $DIR/privacy-struct-ctor.rs:55:5
76 error: aborting due to 10 previous errors
78 Some errors occurred: E0423, E0603.
79 For more information about an error, try `rustc --explain E0423`.