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