1 // aux-build:privacy-struct-ctor.rs
3 extern crate privacy_struct_ctor as xcrate;
12 pub(in m) struct Z(pub(in m::n) u8);
15 use m::n::Z; // OK, only the type is imported
19 //~^ ERROR tuple struct constructor `Z` is private
21 //~^ ERROR expected value, found struct `Z`
25 use m::S; // OK, only the type is imported
26 use m::S2; // OK, only the type is imported
30 //~^ ERROR tuple struct constructor `S` is private
32 //~^ ERROR tuple struct constructor `S` is private
34 //~^ ERROR expected value, found struct `S`
36 //~^ ERROR tuple struct constructor `Z` is private
39 //~^ ERROR expected value, found struct `S2`
42 //~^ ERROR tuple struct constructor `S` is private
44 //~^ ERROR expected value, found struct `xcrate::S`
46 //~^ ERROR tuple struct constructor `Z` is private