mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 21:17:39 +00:00
16 lines
390 B
Rust
16 lines
390 B
Rust
![]() |
#![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 {}
|