Error code E0067

An invalid left-hand side expression was used on an assignment operation.

Erroneous code example:

12 += 1; // error!
Run

You need to have a place expression to be able to assign it something. For example:

let mut x: i8 = 12;
x += 1; // ok!
Run

Back to list of error codes