summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-json/unions/impl.rs
blob: 7456892df1bb27d9757afb50c64c828dd7494a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![no_std]

// @is "$.index[*][?(@.name=='Ux')].visibility" \"public\"
// @has "$.index[*][?(@.name=='Ux')].inner.union"
pub union Ux {
    a: u32,
    b: u64
}

// @is "$.index[*][?(@.name=='Num')].visibility" \"public\"
// @has "$.index[*][?(@.name=='Num')].inner.trait"
pub trait Num {}

// @count "$.index[*][?(@.name=='Ux')].inner.union.impls" 1
impl Num for Ux {}