rust/tests/rustdoc-json/unions/impl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
371 B
Rust
Raw Normal View History

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