]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-for-loop-correct-cmt-for-pattern.stderr
Rollup merge of #58986 - cuviper:ppc64-binutils, r=alexcrichton
[rust.git] / src / test / ui / borrowck / borrowck-for-loop-correct-cmt-for-pattern.stderr
1 error[E0507]: cannot move out of borrowed content
2   --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:12:9
3    |
4 LL |     for &a in x.iter() {
5    |         ^-
6    |         ||
7    |         |hint: to prevent move, use `ref a` or `ref mut a`
8    |         cannot move out of borrowed content
9
10 error[E0507]: cannot move out of borrowed content
11   --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:18:9
12    |
13 LL |     for &a in &f.a {
14    |         ^-
15    |         ||
16    |         |hint: to prevent move, use `ref a` or `ref mut a`
17    |         cannot move out of borrowed content
18
19 error[E0507]: cannot move out of borrowed content
20   --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:22:9
21    |
22 LL |     for &a in x.iter() {
23    |         ^-
24    |         ||
25    |         |hint: to prevent move, use `ref a` or `ref mut a`
26    |         cannot move out of borrowed content
27
28 error: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0507`.