2020-10-26 09:36:48 -05:00
|
|
|
error[E0423]: cannot initialize a tuple struct which contains private fields
|
2019-02-11 12:29:10 -06:00
|
|
|
--> $DIR/issue-42944.rs:9:9
|
|
|
|
|
|
2020-06-13 12:58:46 -05:00
|
|
|
LL | Bx(());
|
2020-10-26 09:36:48 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
note: constructor is not visible here due to private fields
|
|
|
|
--> $DIR/issue-42944.rs:2:19
|
|
|
|
|
|
|
|
|
LL | pub struct Bx(());
|
|
|
|
| ^^ private field
|
2019-02-11 12:29:10 -06:00
|
|
|
|
2020-06-13 12:58:46 -05:00
|
|
|
error[E0425]: cannot find function, tuple struct or tuple variant `Bx` in this scope
|
2019-10-14 19:20:50 -05:00
|
|
|
--> $DIR/issue-42944.rs:16:9
|
2019-02-11 12:29:10 -06:00
|
|
|
|
|
2020-06-13 12:58:46 -05:00
|
|
|
LL | Bx(());
|
|
|
|
| ^^ not found in this scope
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2021-09-10 18:15:40 -05:00
|
|
|
= note: this tuple struct exists but is inaccessible:
|
|
|
|
foo::Bx
|
2019-02-11 12:29:10 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0423, E0425.
|
2019-02-11 12:29:10 -06:00
|
|
|
For more information about an error, try `rustc --explain E0423`.
|