Add regression test for #112852

This commit is contained in:
Guillaume Gomez 2023-07-11 16:32:11 +02:00
parent a5e0ca962a
commit 449cc6549f

View File

@ -0,0 +1,14 @@
#![feature(no_core)]
#![no_core]
// @!has "$.index[*][?(@.name == 'HiddenPubStruct')]"
// @!has "$.index[*][?(@.inner.impl)]"
// @has "$.index[*][?(@.name=='PubTrait')]"
pub trait PubTrait {}
#[doc(hidden)]
pub mod hidden {
pub struct HiddenPubStruct;
impl crate::PubTrait for HiddenPubStruct {}
}