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-17 17:07:41 -05:00
|
|
|
note: tuple struct `foo::Bx` exists but is inaccessible
|
|
|
|
--> $DIR/issue-42944.rs:2:5
|
|
|
|
|
|
2023-01-07 19:15:28 -06:00
|
|
|
LL | pub struct Bx(pub(in crate::foo) ());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible
|
2019-02-11 12:29:10 -06:00
|
|
|
|
2022-10-05 00:35:34 -05:00
|
|
|
error[E0423]: cannot initialize a tuple struct which contains private fields
|
|
|
|
--> $DIR/issue-42944.rs:9:9
|
|
|
|
|
|
|
|
|
LL | Bx(());
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
note: constructor is not visible here due to private fields
|
|
|
|
--> $DIR/issue-42944.rs:2:19
|
|
|
|
|
|
2023-01-07 19:15:28 -06:00
|
|
|
LL | pub struct Bx(pub(in crate::foo) ());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ private field
|
|
|
|
help: consider making the field publicly accessible
|
|
|
|
|
|
|
|
|
LL | pub struct Bx(pub ());
|
|
|
|
| ~~~
|
2022-10-05 00:35:34 -05:00
|
|
|
|
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`.
|