<!-- Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting Forum for questions: https://users.rust-lang.org/c/ide/14 Before submitting, please make sure that you're not running into one of these known issues: 1. on-the-fly diagnostics are mostly unimplemented (`cargo check` diagnostics will be shown when saving a file): #3107 Otherwise please try to provide information which will help us to fix the issue faster. Minimal reproducible examples with few dependencies are especially lovely <3. --> **rust-analyzer version**: rust-analyzer 1.80.0 (05147895 2024-07-21) **rustc version**: rustc 1.80.0 (051478957 2024-07-21) **editor or extension**: Vim **code snippet to reproduce**: ```rust fn foo() { struct X; impl X fo { } } ``` select completion list... **output**: ```rust fn foo() { struct X; impl X for in { } { } } ``` **expect**: ```rust fn foo() { struct X; impl X for { } } ``` <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_ASSIGN_START --> <!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"rami3l"}$$TRIAGEBOT_ASSIGN_DATA_END --> <!-- TRIAGEBOT_ASSIGN_END --> <!-- TRIAGEBOT_END -->