This question was asked.
Now, this question is not reproducible. When I paste the code in the playground, it works perfectly fine (the compiler can infer the type). Of course, I need to flag the question for closure (and perhaps also downvote it), which I did.
But this question has got an answer. This answer is not blatantly wrong: I'd answer the same if I hadn't bothered to actually check the question is reproducible. Moreover, this answer can be true in other cases (for example, if the type was specified at return type position. Maybe this was the original problem, and the OP effectively erased it without knowing while minimizing the question). I guess that's what the other people that upvoted it thought (in fact, I was about to upvote it too, then noticed the compiler should not behave this way and went to check).
What should I do in this case? Should I "punish" the answerer for not checking the question really applies by downvoting the answer? I don't think we should always check that (I, for one, don't). Should I flag it for moderator intervention? Or just leave a comment, like I did?
While relevant, this question is not a duplicate of Is it okay to downvote answers to bad questions?. I agree we shouldn't downvote good questions for bad answers, but in this case it's not just that the answer is not high-quality, but that it's just there is no question at all. Pedantically, the answer is incorrect because it doesn't "solve" the problem, as no such problem exists. In addition, even if we should not downvote it, we may want to flag it.