Skip to content

Commit 484dc48

Browse files
committed
Add test for impls in typedef
1 parent 348ef7c commit 484dc48

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#![no_std]
2+
3+
// @has type_impl.json "$.index[*][?(@.name=='Ix')].visibility" \"public\"
4+
// @has - "$.index[*][?(@.name=='Ix')].kind" \"typedef\"
5+
pub type Ix = usize;
6+
7+
// @has - "$.index[*][?(@.name=='IxTrait')].visibility" \"public\"
8+
// @has - "$.index[*][?(@.name=='IxTrait')].kind" \"trait\"
9+
pub trait IxTrait {}
10+
11+
// @count - "$.index[*][?(@.name=='Ix')].inner.impls" 1
12+
impl IxTrait for Ix {}

0 commit comments

Comments
 (0)