Also, the Inline 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.