substruct 0.1.3

A proc-macro to create subsets of structs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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  | |     }
   | |_____^