diff options
| -rw-r--r-- | crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs b/crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs index 074b8b79328..65e2a018477 100644 --- a/crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs +++ b/crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs @@ -468,6 +468,21 @@ enum Foo { } "#, ); + 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), +} +"#, + ); } #[test] |
