rustdoc-json: added a test for #107278

This commit is contained in:
schvv31n 2024-08-08 17:55:52 +01:00
parent 8b3870784f
commit 1bf30eb5aa

View 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 {}