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

22 lines
538 B
Rust
Raw Normal View History

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