Skip to content

Commit 2861a56

Browse files
Add more tests for not-reexported impl
1 parent ab80b36 commit 2861a56

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#![feature(no_core)]
2+
#![no_core]
3+
4+
// @!has "$.index[*][?(@.name == 'HiddenPubStruct')]"
5+
// @!has "$.index[*][?(@.inner.impl)]"
6+
// @has "$.index[*][?(@.name=='PubTrait')]"
7+
pub trait PubTrait {}
8+
9+
#[doc(hidden)]
10+
pub struct HiddenPubStruct;
11+
12+
impl PubTrait for HiddenPubStruct {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// compile-flags: --document-hidden-items
2+
3+
#![feature(no_core)]
4+
#![no_core]
5+
6+
// @has "$.index[*][?(@.name == 'HiddenPubStruct')]"
7+
// @has "$.index[*][?(@.inner.impl)]"
8+
// @has "$.index[*][?(@.name=='PubTrait')]"
9+
pub trait PubTrait {}
10+
11+
#[doc(hidden)]
12+
pub struct HiddenPubStruct;
13+
14+
impl PubTrait for HiddenPubStruct {}

0 commit comments

Comments
 (0)