test: add test case for TupleField

This commit is contained in:
Young-Flash 2024-01-03 20:07:53 +08:00
parent 099c3204a2
commit 1a9b1b8ccc

View file

@ -466,6 +466,21 @@ enum Foo {
Bar(Bar), Bar(Bar),
Nil, 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),
}
"#, "#,
); );
} }