<!-- Troubleshooting guide: https://rust-analyzer.github.io/book/troubleshooting.html 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**: 0.3.2571 **rustc version**: rustc 1.90.0-nightly (f26e58023 2025-06-30) **editor or extension**: VSCode **relevant settings**: **repository link (if public, optional)**: **code snippet to reproduce**: ```rs struct A { name: &'static str, } const AA: A = A { name: "123" }; const AAA: &A = &AA; ``` Hint: <img width="504" height="57" alt="Image" src="https://github.com/user-attachments/assets/9f604910-4086-483e-9d0b-edfbbd8d0b83" />