File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,7 @@ pub enum Term {
542542#[ serde( rename_all = "snake_case" ) ]
543543#[ serde( tag = "kind" , content = "inner" ) ]
544544pub enum Type {
545- /// Structs and enums
545+ /// Structs, enums, and unions
546546 ResolvedPath ( Path ) ,
547547 DynTrait ( DynTrait ) ,
548548 /// Parameterized types
Original file line number Diff line number Diff line change 11// @has "$.index[*][?(@.name=='Union')].visibility" \"public\"
22// @has "$.index[*][?(@.name=='Union')].kind" \"union\"
33// @!has "$.index[*][?(@.name=='Union')].inner.struct_type"
4+ // @set Union = "$.index[*][?(@.name=='Union')].id"
45pub union Union {
56 int : i32 ,
67 float : f32 ,
78}
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