2023-07-11 09:32:11 -05:00
|
|
|
#![feature(no_core)]
|
|
|
|
#![no_core]
|
|
|
|
|
2023-07-17 16:36:33 -05:00
|
|
|
// @count "$.index[*][?(@.inner.impl)]" 1
|
2023-07-11 09:32:11 -05:00
|
|
|
// @!has "$.index[*][?(@.name == 'HiddenPubStruct')]"
|
2023-07-17 16:36:33 -05:00
|
|
|
// @has "$.index[*][?(@.name == 'NotHiddenPubStruct')]"
|
2023-07-11 09:32:11 -05:00
|
|
|
// @has "$.index[*][?(@.name=='PubTrait')]"
|
|
|
|
pub trait PubTrait {}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
pub mod hidden {
|
|
|
|
pub struct HiddenPubStruct;
|
|
|
|
|
|
|
|
impl crate::PubTrait for HiddenPubStruct {}
|
|
|
|
}
|
2023-07-17 16:36:33 -05:00
|
|
|
|
|
|
|
pub mod not_hidden {
|
|
|
|
pub struct NotHiddenPubStruct;
|
|
|
|
|
|
|
|
impl crate::PubTrait for NotHiddenPubStruct {}
|
|
|
|
}
|