]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-46023.rs
Rollup merge of #103146 - joboet:cleanup_pthread_condvar, 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 }