test: rustdoc-ui: Expand issue-74134 to cover types in a private module
This commit is contained in:
parent
689e360d82
commit
97048595e1
1 changed files with 15 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue