rustdoc-json: added a test for #107278
This commit is contained in:
parent
8b3870784f
commit
1bf30eb5aa
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…
Reference in New Issue
Block a user