Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 274 Bytes

File metadata and controls

15 lines (11 loc) · 274 Bytes

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

Erroneous code example:

12 += 1; // error!

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

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