Error code E0070
An assignment operator was used on a non-place expression.
Erroneous code examples:
ⓘ
The left-hand side of an assignment operator must be a place expression. A place expression represents a memory location and can be a variable (with optional namespacing), a dereference, an indexing expression or a field reference.
More details can be found in the Expressions section of the Reference.
And now let's give working examples: