2021-09-26 11:22:07 -05:00
|
|
|
#![no_std]
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='Ux')].visibility" \"public\"
|
|
|
|
//@ has "$.index[*][?(@.name=='Ux')].inner.union"
|
2021-09-26 11:22:07 -05:00
|
|
|
pub union Ux {
|
|
|
|
a: u32,
|
2024-06-03 19:03:40 -05:00
|
|
|
b: u64,
|
2021-09-26 11:22:07 -05:00
|
|
|
}
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='Num')].visibility" \"public\"
|
|
|
|
//@ has "$.index[*][?(@.name=='Num')].inner.trait"
|
2021-09-26 11:22:07 -05:00
|
|
|
pub trait Num {}
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ count "$.index[*][?(@.name=='Ux')].inner.union.impls" 1
|
2021-09-26 11:22:07 -05:00
|
|
|
impl Num for Ux {}
|