LL | xcrate::S;
| ^^^^^^^^^ constructor is not visible here due to private fields
|
-help: consider importing this tuple struct instead
- |
-LL | use m::S;
+note: tuple struct `m::S` exists but is inaccessible
+ --> $DIR/privacy-struct-ctor.rs:6:5
|
+LL | pub struct S(u8);
+ | ^^^^^^^^^^^^^^^^^ not accessible
error[E0603]: tuple struct constructor `Z` is private
--> $DIR/privacy-struct-ctor.rs:18:12