<!-- 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. extension doesn't load in VSCodium: #11080 2. 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.4.1183-standalone (https://github.com/rust-lang/rust-analyzer/commit/6bea872edd9523a06213270f68725c9fe33f3919 2022-08-26) **rustc version**: rustc 1.65.0-nightly (878aef79d 2022-08-20) **relevant settings**: `"rust-analyzer.inlayHints.reborrowHints.enable": "always"` For the snippet ```rust struct Foo; impl Foo { fn immutable(&self) -> usize { 0 } fn mutable(&mut self) { let x = self.immutable(); } } ``` r-a gives the hint ```rust let x = &*self.immutable(); // ^^ ``` which doesn't compile. When `self` is manually parenthesized, r-a does show the correct hint: ```rust let x = (&*self).immutable(); // ^^ ```