Open
Description
rust-analyzer version: rust-analyzer 1.86.0 (05f9846 2025-03-31)
rustc version: rustc 1.86.0 (05f9846f8 2025-03-31)
code snippet to reproduce:
mod foo {
struct $0Foo {}
}
->
mod foo {
struct Foo {}
impl Foo {
fn new() -> Self {
Self { }
}
}
}
Expect:
mod foo {
struct Foo {}
impl Foo {
fn new() -> Self {
Self { }
}
}
}
Similar to:
mod foo {
struct $0Foo {}
impl Foo {
fn some() {}
}
}
->
mod foo {
struct Foo {}
impl Foo {
fn new() -> Self {
Self { }
}
fn some() {}
}
}
Expect:
mod foo {
struct Foo {}
impl Foo {
fn new() -> Self {
Self { }
}
fn some() {}
}
}