2022-08-17 05:55:09 -05:00
|
|
|
// @has "$.index[*][?(@.name=='Union')].visibility" \"public\"
|
|
|
|
// @has "$.index[*][?(@.name=='Union')].kind" \"union\"
|
|
|
|
// @!has "$.index[*][?(@.name=='Union')].inner.struct_type"
|
2022-09-16 13:45:26 -05:00
|
|
|
// @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
|
|
|
|
|
|
|
|
|
|
|
// @is "$.index[*][?(@.name=='make_int_union')].inner.decl.output.kind" '"resolved_path"'
|
|
|
|
// @is "$.index[*][?(@.name=='make_int_union')].inner.decl.output.inner.id" $Union
|
|
|
|
pub fn make_int_union(int: i32) -> Union {
|
|
|
|
Union { int }
|
|
|
|
}
|