1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:12:15
4 LL | for &a in x.iter() {
5 | -- ^^^^^^^^ cannot move out of borrowed content
8 | help: consider removing the `&`: `a`
10 note: move occurs because `a` has type `&mut i32`, which does not implement the `Copy` trait
11 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:12:10
13 LL | for &a in x.iter() {
16 error[E0507]: cannot move out of borrowed content
17 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:18:15
20 | -- ^^^^ cannot move out of borrowed content
23 | help: consider removing the `&`: `a`
25 note: move occurs because `a` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
26 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:18:10
31 error[E0507]: cannot move out of borrowed content
32 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:22:15
34 LL | for &a in x.iter() {
35 | -- ^^^^^^^^ cannot move out of borrowed content
38 | help: consider removing the `&`: `a`
40 note: move occurs because `a` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
41 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:22:10
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`.