This has been an issue for basically as long as I can remember, and I'm curious if it's a known issue or just a local phenomenon:
When I run cargo test and there's a compile error in a doc test, the compiler will often, but not always, report the error one line off. Just now, the console output says an error is on line 64, but it's actually on line 63.
As far has I can remember, this has been the case for years.
It's a minor annoyance since when I go to the line, the actual error is just one line off, but still -- it's a little strange. Feels like a off-by-one error. I haven't been able to isolate when it starts happening, but once it does, it seems to be 100% reproducible and consistent.