Rollup merge of #128836 - its-the-shrimp:add_test_for_107278, r=aDotInTheVoid
rustdoc-json: add a test for impls on private & hidden types Fixes #107278 (or rather just ensures it won't resurface) r? ``@aDotInTheVoid``
This commit is contained in:
commit
8789b95b67
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