Assignments are not expressions and only expressions are allowed in this context

This was already discussed here