I was watching fasterthanlime's video about self-referential structs, and he had this bit of code
You can see the error it has. The error is on line 5 and mentions like 17. You can get something similar with other things, like trying to use a variable after a function takes ownership of it.
My question is, how'd he get his editor (VS Code) to also highlight line 17? Mine will highlight line 5 fine, but not line 17.