about summary refs log tree commit diff
path: root/tests/rustdoc-json/impls/issue-112852-dangling-trait-impl-id.rs
blob: 7fc3f70fe5a65a3a0e2a50397d583979a25ae0dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//@ has "$.index[?(@.name=='PubTrait')]"
pub trait PubTrait {}

#[doc(hidden)]
pub mod hidden {
    //@ !has "$.index[?(@.name == 'HiddenPubStruct')]"
    pub struct HiddenPubStruct;

    //@ !has "$.index[?(@.docs == 'Not Here')]"
    /// Not Here
    impl crate::PubTrait for HiddenPubStruct {}
}

pub mod not_hidden {
    //@ has "$.index[?(@.name == 'NotHiddenPubStruct')]"
    pub struct NotHiddenPubStruct;

    //@ has "$.index[?(@.docs == 'Here')]"
    /// Here
    impl crate::PubTrait for NotHiddenPubStruct {}
}