File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,7 @@ pub enum Term {
542
542
#[ serde( rename_all = "snake_case" ) ]
543
543
#[ serde( tag = "kind" , content = "inner" ) ]
544
544
pub enum Type {
545
- /// Structs and enums
545
+ /// Structs, enums, and unions
546
546
ResolvedPath ( Path ) ,
547
547
DynTrait ( DynTrait ) ,
548
548
/// Parameterized types
Original file line number Diff line number Diff line change 1
1
// @has "$.index[*][?(@.name=='Union')].visibility" \"public\"
2
2
// @has "$.index[*][?(@.name=='Union')].kind" \"union\"
3
3
// @!has "$.index[*][?(@.name=='Union')].inner.struct_type"
4
+ // @set Union = "$.index[*][?(@.name=='Union')].id"
4
5
pub union Union {
5
6
int : i32 ,
6
7
float : f32 ,
7
8
}
9
+
10
+
11
+ // @is "$.index[*][?(@.name=='make_int_union')].inner.decl.output.kind" '"resolved_path"'
12
+ // @is "$.index[*][?(@.name=='make_int_union')].inner.decl.output.inner.id" $Union
13
+ pub fn make_int_union ( int : i32 ) -> Union {
14
+ Union { int }
15
+ }
You can’t perform that action at this time.
0 commit comments