Magic completions in rust-analyzer

Today I learned rust-analyzer magic completions include tmod (test module) and tfn (test function). We get these from cargo when we start a new library, but we can stick them in anytime!

Here I am typing tmod TAB and and then tfn TAB in Emacs.

animation showing magic completion in Emacs

If your editor is configured to use rust-analyzer, it probably works similarly.

Neat!