rustdoc-json: added a test for #107278
This commit is contained in:
parent
8b3870784f
commit
1bf30eb5aa
1 changed files with 10 additions and 0 deletions
10
tests/rustdoc-json/impls/pub_for_hidden_private.rs
Normal file
10
tests/rustdoc-json/impls/pub_for_hidden_private.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
//@ compile-flags: --document-private-items --document-hidden-items
|
||||
|
||||
pub trait TheTrait {}
|
||||
|
||||
#[doc(hidden)]
|
||||
struct Value {}
|
||||
|
||||
//@ has '$.index[*][?(@.docs=="THE IMPL")]'
|
||||
/// THE IMPL
|
||||
impl TheTrait for Value {}
|
Loading…
Add table
Add a link
Reference in a new issue