1 error[E0425]: cannot find function, tuple struct or tuple variant `Bx` in this scope
2 --> $DIR/issue-42944.rs:16:9
5 | ^^ not found in this scope
7 note: tuple struct `foo::Bx` exists but is inaccessible
8 --> $DIR/issue-42944.rs:2:5
10 LL | pub struct Bx(());
11 | ^^^^^^^^^^^^^^^^^^ not accessible
13 error[E0423]: cannot initialize a tuple struct which contains private fields
14 --> $DIR/issue-42944.rs:9:9
19 note: constructor is not visible here due to private fields
20 --> $DIR/issue-42944.rs:2:19
22 LL | pub struct Bx(());
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`.