1 error[E0506]: cannot assign to `x` because it is borrowed
2 --> $DIR/closure-use-spans.rs:5:5
5 | -- borrow of `x` occurs here
7 | ^^^^^ assignment to borrowed `x` occurs here
9 | -- borrow later captured here by closure
11 error[E0506]: cannot assign to `x` because it is borrowed
12 --> $DIR/closure-use-spans.rs:11:5
15 | ------ borrow of `x` occurs here
17 | ^^^^^ assignment to borrowed `x` occurs here
19 | -- borrow later captured here by closure
21 error[E0506]: cannot assign to `x` because it is borrowed
22 --> $DIR/closure-use-spans.rs:17:5
25 | -- borrow of `x` occurs here
27 | ^^^^^ assignment to borrowed `x` occurs here
29 | -- borrow later captured here by closure
31 error: aborting due to 3 previous errors
33 For more information about this error, try `rustc --explain E0506`.