Enable VSCode lifetimes elisions hints to learn about lifetimes

658 points anarcap

A little while ago I posted asking for help to learn about lifetimes.

I just did this last week and it helped me clear a few misconceptions.

I enabled lifetime elision hints inside vscode:

\\\\ Rust-analyzer › Inlay Hints › Lifetime Elision Hints: Enable Whether to show inlay type hints for elided lifetimes in function signatures. \\\\\

Hope it helps someone else!