rust/tests/rustdoc-json/impls/issue-112852-dangling-trait-impl-id-2.rs
2023-07-17 23:36:47 +02:00

16 lines
405 B
Rust

#![feature(no_core)]
#![no_core]
// @count "$.index[*][?(@.inner.impl)]" 1
// @!has "$.index[*][?(@.name == 'HiddenPubStruct')]"
// @has "$.index[*][?(@.name == 'NotHiddenPubStruct')]"
// @has "$.index[*][?(@.name=='PubTrait')]"
pub trait PubTrait {}
#[doc(hidden)]
pub struct HiddenPubStruct;
pub struct NotHiddenPubStruct;
impl PubTrait for HiddenPubStruct {}
impl PubTrait for NotHiddenPubStruct {}