fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0425]: cannot find function, tuple struct or tuple variant `Bx` in this scope 2 --> $DIR/issue-42944.rs:16:9 3 | 4LL | Bx(()); 5 | ^^ not found in this scope 6 | 7note: tuple struct `foo::Bx` exists but is inaccessible 8 --> $DIR/issue-42944.rs:2:5 9 | 10LL | pub struct Bx(pub(in crate::foo) ()); 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible 12 13error[E0423]: cannot initialize a tuple struct which contains private fields 14 --> $DIR/issue-42944.rs:9:9 15 | 16LL | Bx(()); 17 | ^^ 18 | 19note: constructor is not visible here due to private fields 20 --> $DIR/issue-42944.rs:2:19 21 | 22LL | pub struct Bx(pub(in crate::foo) ()); 23 | ^^^^^^^^^^^^^^^^^^^^^ private field 24help: consider making the field publicly accessible 25 | 26LL | pub struct Bx(pub ()); 27 | ~~~ 28 29error: aborting due to 2 previous errors 30 31Some errors have detailed explanations: E0423, E0425. 32For more information about an error, try `rustc --explain E0423`.