The former implies it can be either, the latter implies it is always a place expression. I suspect that the wording of the latter is the one that's wrong.
The text was updated successfully, but these errors were encountered:
IIRC, the distinction here is that the scrutinee is a place expression context. A place context can receive either a place or value expression. Being a place expression context doesn't mean it can only take a place expression.
Ahhhh. That would make sense. I'm not sure if that means "close this bug, steve is just wrong" or if there's a way to make this distinction more obvious.
Regardless, thank you 👍
ehuss
added
the
Language Cleanup
Improvements to existing language which is correct but not clear, or missing examples, or the like.
label
Mar 7, 2022
https://doc.rust-lang.org/stable/reference/expressions/match-expr.html says:
And a little lower,
Let's click that link. It says:
The former implies it can be either, the latter implies it is always a place expression. I suspect that the wording of the latter is the one that's wrong.
The text was updated successfully, but these errors were encountered: