]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0067.md
Rollup merge of #62514 - stephaneyfx:box-ffi, r=nikomatsakis
[rust.git] / src / librustc_error_codes / error_codes / E0067.md
1 An invalid left-hand side expression was used on an assignment operation.
2
3 Erroneous code example:
4
5 ```compile_fail,E0067
6 12 += 1; // error!
7 ```
8
9 You need to have a place expression to be able to assign it something. For
10 example:
11
12 ```
13 let mut x: i8 = 12;
14 x += 1; // ok!
15 ```