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

12 lines
282 B
Rust
Raw Normal View History

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