1 error[E0423]: cannot initialize a tuple struct which contains private fields
2 --> $DIR/issue-42944.rs:9:9
7 note: constructor is not visible here due to private fields
8 --> $DIR/issue-42944.rs:2:19
10 LL | pub struct Bx(());
13 error[E0425]: cannot find function, tuple struct or tuple variant `Bx` in this scope
14 --> $DIR/issue-42944.rs:16:9
17 | ^^ not found in this scope
19 note: tuple struct `foo::Bx` exists but is inaccessible
20 --> $DIR/issue-42944.rs:2:5
22 LL | pub struct Bx(());
23 | ^^^^^^^^^^^^^^^^^^ not accessible
25 error: aborting due to 2 previous errors
27 Some errors have detailed explanations: E0423, E0425.
28 For more information about an error, try `rustc --explain E0423`.