Skip to content

Commit

Permalink
test: add test case for TupleField
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash committed Jan 3, 2024
1 parent 099c320 commit 1a9b1b8
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,21 @@ enum Foo {
Bar(Bar),
Nil,
}
"#,
);
check_assist(
extract_struct_from_enum_variant,
r#"
enum Foo {
Nil(Box$0<Self>, Arc<Box<Self>>),
}
"#,
r#"
struct Nil(Box<Foo>, Arc<Box<Foo>>);
enum Foo {
Nil(Nil),
}
"#,
);
}
Expand Down

0 comments on commit 1a9b1b8

Please sign in to comment.