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

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

12 lines
283 B
Rust
Raw Normal View History

2023-07-14 09:45:41 -05:00
//@ compile-flags: --document-hidden-items
//@ has "$.index[*][?(@.name == 'HiddenPubStruct')]"
//@ has "$.index[*][?(@.inner.impl)]"
//@ has "$.index[*][?(@.name=='PubTrait')]"
2023-07-14 09:45:41 -05:00
pub trait PubTrait {}
#[doc(hidden)]
pub struct HiddenPubStruct;
impl PubTrait for HiddenPubStruct {}