]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0594]: cannot assign to `x`, as it is not declared as mutable |
0731742a | 2 | --> $DIR/generator-upvar-mutability.rs:8:9 |
8faf50e0 XL |
3 | | |
4 | LL | let x = 0; | |
5 | | - help: consider changing this to be mutable: `mut x` | |
6 | LL | move || { | |
7 | LL | x = 1; | |
8 | | ^^^^^ cannot assign | |
9 | ||
10 | error: aborting due to previous error | |
11 | ||
60c5eb7d | 12 | For more information about this error, try `rustc --explain E0594`. |