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

16 lines
436 B
Rust

//@ has "$.index[*][?(@.docs=='Here')]"
//@ !has "$.index[*][?(@.docs=='Not Here')]"
//@ !has "$.index[*][?(@.name == 'HiddenPubStruct')]"
//@ has "$.index[*][?(@.name == 'NotHiddenPubStruct')]"
//@ has "$.index[*][?(@.name=='PubTrait')]"
pub trait PubTrait {}
#[doc(hidden)]
pub struct HiddenPubStruct;
pub struct NotHiddenPubStruct;
/// Not Here
impl PubTrait for HiddenPubStruct {}
/// Here
impl PubTrait for NotHiddenPubStruct {}