]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/generator-upvar-mutability.stderr
Update upstream source from tag 'upstream/1.31.0_beta.4+dfsg1'
[rustc.git] / src / test / ui / nll / generator-upvar-mutability.stderr
CommitLineData
8faf50e0
XL
1error[E0594]: cannot assign to `x`, as it is not declared as mutable
2 --> $DIR/generator-upvar-mutability.rs:18:9
3 |
4LL | let x = 0;
5 | - help: consider changing this to be mutable: `mut x`
6LL | move || {
7LL | x = 1;
8 | ^^^^^ cannot assign
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0594`.