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

22 lines
479 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 mod hidden {
pub struct HiddenPubStruct;
impl crate::PubTrait for HiddenPubStruct {}
}
pub mod not_hidden {
pub struct NotHiddenPubStruct;
impl crate::PubTrait for NotHiddenPubStruct {}
}