Add more tests for not-reexported impl

This commit is contained in:
Guillaume Gomez 2023-07-14 16:45:41 +02:00
parent ab80b36452
commit 2861a56178
2 changed files with 26 additions and 0 deletions

View file

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

View file

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