rust/tests/rustdoc-json/impls/issue-112852-dangling-trait-impl-id-3.rs
2024-07-19 16:54:42 +02:00

12 lines
283 B
Rust

//@ compile-flags: --document-hidden-items
//@ has "$.index[*][?(@.name == 'HiddenPubStruct')]"
//@ has "$.index[*][?(@.inner.impl)]"
//@ has "$.index[*][?(@.name=='PubTrait')]"
pub trait PubTrait {}
#[doc(hidden)]
pub struct HiddenPubStruct;
impl PubTrait for HiddenPubStruct {}