Skip to content

Commit 449cc65

Browse files
Add regression test for #112852
1 parent a5e0ca9 commit 449cc65

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#![feature(no_core)]
2+
#![no_core]
3+
4+
// @!has "$.index[*][?(@.name == 'HiddenPubStruct')]"
5+
// @!has "$.index[*][?(@.inner.impl)]"
6+
// @has "$.index[*][?(@.name=='PubTrait')]"
7+
pub trait PubTrait {}
8+
9+
#[doc(hidden)]
10+
pub mod hidden {
11+
pub struct HiddenPubStruct;
12+
13+
impl crate::PubTrait for HiddenPubStruct {}
14+
}

0 commit comments

Comments
 (0)