]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-46023.rs
Auto merge of #105145 - Ayush1325:sequential-remote-server, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / issue-46023.rs
1 fn main() {
2     let x = 0;
3
4     (move || {
5         x = 1;
6         //~^ ERROR cannot assign to `x`, as it is not declared as mutable [E0594]
7     })()
8 }