This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ #![ no_std]
2+
3+ // @has assoc_items.json
4+
5+ pub struct Simple ;
6+
7+ impl Simple {
8+ // @has - "$.index[*][?(@.name=='CONSTANT')].kind" \"assoc_const\"
9+ pub const CONSTANT : usize = 0 ;
10+ }
11+
12+ pub trait EasyToImpl {
13+ // @has - "$.index[*][?(@.name=='ToDeclare')].kind" \"assoc_type\"
14+ // @has - "$.index[*][?(@.name=='ToDeclare')].inner.default" null
15+ type ToDeclare ;
16+ // @has - "$.index[*][?(@.name=='AN_ATTRIBUTE')].kind" \"assoc_const\"
17+ // @has - "$.index[*][?(@.name=='AN_ATTRIBUTE')].inner.default" null
18+ const AN_ATTRIBUTE : usize ;
19+ }
20+
21+ impl EasyToImpl for Simple {
22+ // @has - "$.index[*][?(@.name=='ToDeclare')].inner.default.kind" \"primitive\"
23+ // @has - "$.index[*][?(@.name=='ToDeclare')].inner.default.inner" \"usize\"
24+ type ToDeclare = usize ;
25+ // @has - "$.index[*][?(@.name=='AN_ATTRIBUTE')].inner.type.kind" \"primitive\"
26+ // @has - "$.index[*][?(@.name=='AN_ATTRIBUTE')].inner.type.inner" \"usize\"
27+ // @has - "$.index[*][?(@.name=='AN_ATTRIBUTE')].inner.default" \"12\"
28+ const AN_ATTRIBUTE : usize = 12 ;
29+ }
You can’t perform that action at this time.
0 commit comments