Skip to content

Commit

Permalink
rustdoc-json: added a test for #107278
Browse files Browse the repository at this point in the history
  • Loading branch information
its-the-shrimp committed Aug 8, 2024
1 parent 8b38707 commit 1bf30eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/rustdoc-json/impls/pub_for_hidden_private.rs
Original file line number Diff line number Diff line change
@@ -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 {}

0 comments on commit 1bf30eb

Please sign in to comment.