Variable lifetime visualization for borrow checker errors
RustRover can visualize variable lifetimes in case the borrow checker reports an error. This may help you in locating and fixing ownership issues.
note
For this feature to work, make sure on-the-fly linter analysis is turned on: go to Settings | Rust | External Linters and set the Run external linter on the fly checkbox.
Also, the Inline problem explanations setting must be enabled in Settings | Editor | Inlay hints | Other | Rust (it is enabled by default).
Place the caret at the highlighted code or hover over it – the variable lifetime will be marked with a vertical blue line on the left and a pair of comments on the right.