test: rustdoc-ui: Expand issue-74134 to cover types in a private module

This commit is contained in:
Dennis Hamester 2020-07-11 10:02:18 +02:00
parent 689e360d82
commit 97048595e1

View file

@ -24,3 +24,18 @@ pub struct Public {
/// [`PrivateType`]
private_item: u32,
}
// The following cases are identical to the ones above, except that they are in a private
// module. Thus they all fall into cases 3 and 4 and should not produce a warning.
mod private {
pub struct Public {
/// [`super::PublicType`]
/// [`super::PrivateType`]
pub public_item: u32,
/// [`super::PublicType`]
/// [`super::PrivateType`]
private_item: u32,
}
}