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