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

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

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

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