1 error[E0382]: use of moved value: `x`
2 --> $DIR/closure-move-spans.rs:5:13
4 LL | fn move_after_move(x: String) {
5 | - move occurs because `x` has type `String`, which does not implement the `Copy` trait
7 | -- - variable moved due to use in closure
9 | value moved into closure here
11 | ^ value used here after move
13 error[E0382]: borrow of moved value: `x`
14 --> $DIR/closure-move-spans.rs:10:13
16 LL | fn borrow_after_move(x: String) {
17 | - move occurs because `x` has type `String`, which does not implement the `Copy` trait
19 | -- - variable moved due to use in closure
21 | value moved into closure here
23 | ^^ value borrowed here after move
25 error[E0382]: borrow of moved value: `x`
26 --> $DIR/closure-move-spans.rs:15:13
28 LL | fn borrow_mut_after_move(mut x: String) {
29 | ----- move occurs because `x` has type `String`, which does not implement the `Copy` trait
31 | -- - variable moved due to use in closure
33 | value moved into closure here
35 | ^^^^^^ value borrowed here after move
37 error: aborting due to 3 previous errors
39 For more information about this error, try `rustc --explain E0382`.