2024-07-19 09:50:47 -05:00
|
|
|
//@ has "$.index[*][?(@.name=='Union')].visibility" \"public\"
|
|
|
|
//@ has "$.index[*][?(@.name=='Union')].inner.union"
|
|
|
|
//@ !has "$.index[*][?(@.name=='Union')].inner.union.struct_type"
|
|
|
|
//@ set Union = "$.index[*][?(@.name=='Union')].id"
|
2021-01-23 18:40:29 -06:00
|
|
|
pub union Union {
|
|
|
|
int: i32,
|
|
|
|
float: f32,
|
|
|
|
}
|
2022-09-16 13:45:26 -05:00
|
|
|
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ has "$.index[*][?(@.name=='make_int_union')].inner.function.sig.output.resolved_path"
|
|
|
|
//@ is "$.index[*][?(@.name=='make_int_union')].inner.function.sig.output.resolved_path.id" $Union
|
2022-09-16 13:45:26 -05:00
|
|
|
pub fn make_int_union(int: i32) -> Union {
|
|
|
|
Union { int }
|
|
|
|
}
|