1 error[E0507]: cannot move out of a shared reference
2 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:12:15
4 LL | for &a in x.iter() {
8 | move occurs because `a` has type `&mut i32`, which does not implement the `Copy` trait
10 help: consider removing the borrow
12 LL - for &a in x.iter() {
13 LL + for a in x.iter() {
16 error[E0507]: cannot move out of a shared reference
17 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:18:15
23 | move occurs because `a` has type `Box<isize>`, which does not implement the `Copy` trait
25 help: consider removing the borrow
31 error[E0507]: cannot move out of a shared reference
32 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:22:15
34 LL | for &a in x.iter() {
38 | move occurs because `a` has type `Box<i32>`, which does not implement the `Copy` trait
40 help: consider removing the borrow
42 LL - for &a in x.iter() {
43 LL + for a in x.iter() {
46 error: aborting due to 3 previous errors
48 For more information about this error, try `rustc --explain E0507`.