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

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

16 lines
436 B
Rust
Raw Normal View History

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