2020-06-13 17:58:46 +00:00
|
|
|
error[E0425]: cannot find function, tuple struct or tuple variant `Bx` in this scope
|
2019-10-15 00:20:50 +00:00
|
|
|
--> $DIR/issue-42944.rs:16:9
|
2019-02-11 18:29:10 +00:00
|
|
|
|
|
2020-06-13 17:58:46 +00:00
|
|
|
LL | Bx(());
|
|
|
|
| ^^ not found in this scope
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2021-09-17 22:07:41 +00:00
|
|
|
note: tuple struct `foo::Bx` exists but is inaccessible
|
|
|
|
--> $DIR/issue-42944.rs:2:5
|
|
|
|
|
|
2023-01-08 01:15:28 +00:00
|
|
|
LL | pub struct Bx(pub(in crate::foo) ());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible
|
2019-02-11 18:29:10 +00:00
|
|
|
|
2022-10-05 05:35:34 +00: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-08 01:15:28 +00: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 05:35:34 +00:00
|
|
|
|
2019-02-11 18:29:10 +00:00
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0423, E0425.
|
2019-02-11 18:29:10 +00:00
|
|
|
For more information about an error, try `rustc --explain E0423`.
|