blob: 7598ef8e7ea4c78ddeb9104cfb4460168f2f13d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
error[E0368]: binary assignment operation `+=` cannot be applied to type `()`
--> $DIR/gather-locals-twice.rs:4:5
|
LL | () += { let x; };
| --^^^^^^^^^^^^^^
| |
| cannot use `+=` on type `()`
error[E0067]: invalid left-hand side of assignment
--> $DIR/gather-locals-twice.rs:4:8
|
LL | () += { let x; };
| -- ^^
| |
| cannot assign to this expression
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0067, E0368.
For more information about an error, try `rustc --explain E0067`.
|