error[E0603]: struct `A` is private
--> tests/ui/fail/inaccessible-struct.rs:13:27
|
13 | let _ = crate::inner::A::default();
| ^ private struct
|
note: the struct `A` is defined here
--> tests/ui/fail/inaccessible-struct.rs:4:17
|
4 | #[substruct(pub(self) A)]
| _________________^
5 | | #[derive(Default)]
6 | | pub struct Test {
7 | | #[substruct(A)]
8 | | pub field: u32,
9 | | }
| |_____^