rust/tests/rustdoc-json/impls/issue-112852-dangling-trait-impl-id.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
538 B
Rust
Raw Normal View History

//@ has "$.index[*][?(@.name=='PubTrait')]"
2023-07-11 09:32:11 -05:00
pub trait PubTrait {}
#[doc(hidden)]
pub mod hidden {
//@ !has "$.index[*][?(@.name == 'HiddenPubStruct')]"
2023-07-11 09:32:11 -05:00
pub struct HiddenPubStruct;
//@ !has "$.index[*][?(@.docs == 'Not Here')]"
/// Not Here
2023-07-11 09:32:11 -05:00
impl crate::PubTrait for HiddenPubStruct {}
}
2023-07-17 16:36:33 -05:00
pub mod not_hidden {
//@ has "$.index[*][?(@.name == 'NotHiddenPubStruct')]"
2023-07-17 16:36:33 -05:00
pub struct NotHiddenPubStruct;
//@ has "$.index[*][?(@.docs == 'Here')]"
/// Here
2023-07-17 16:36:33 -05:00
impl crate::PubTrait for NotHiddenPubStruct {}
}