That's a great trick. I often leave myself a TODO in a source code. But as a plain text, not as a syntactically valid comment. With this project won't compile and on the next day is obvious where I ended up.
I'll just delete what I wrote and forget about. It also doesn't work with python. Can someone make a todo app that forces you to see it? I feel like it's already done.
I actually hate leaving something not compiling in the evening, it feels like things are unfinished, but it helps getting back into it. I tend to use this more when taking a break for an hour or two.
But it is effective.
However leaving an intentionally broken comment sounds like a good way to get the sense of completion for the day, but have the compiler focus your attention on where you left off!