Add more tests for not-reexported impl
This commit is contained in:
parent
ab80b36452
commit
2861a56178
2 changed files with 26 additions and 0 deletions
|
@ -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 {}
|
|
@ -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 {}
|
Loading…
Add table
Reference in a new issue