Test for pub(restricted)
This commit is contained in:
parent
6475e73b05
commit
eecc0870fc
@ -578,6 +578,16 @@ fn test_gen() {
|
||||
}
|
||||
|
||||
assert_ser::<EmptyAdjacentlyTagged>();
|
||||
|
||||
mod restricted {
|
||||
mod inner {
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct Restricted {
|
||||
pub(super) a: usize,
|
||||
pub(in super::inner) b: usize,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user