1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:22:15
4 LL | for &a in x.iter() { //~ ERROR cannot move out
5 | - ^^^^^^^^ cannot move out of borrowed content
8 | help: to prevent move, use ref or ref mut: `ref a`
10 error[E0507]: cannot move out of borrowed content
11 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:28:15
13 LL | for &a in &f.a { //~ ERROR cannot move out
14 | - ^^^^ cannot move out of borrowed content
17 | help: to prevent move, use ref or ref mut: `ref a`
19 error[E0507]: cannot move out of borrowed content
20 --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:32:15
22 LL | for &a in x.iter() { //~ ERROR cannot move out
23 | - ^^^^^^^^ cannot move out of borrowed content
26 | help: to prevent move, use ref or ref mut: `ref a`
28 error: aborting due to 3 previous errors
30 For more information about this error, try `rustc --explain E0507`.