Test for pub(restricted)

This commit is contained in:
David Tolnay 2018-05-06 23:22:19 -07:00
parent 6475e73b05
commit eecc0870fc
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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,
}
}
}
}
//////////////////////////////////////////////////////////////////////////