]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-for-loop-correct-cmt-for-pattern.nll.stderr
tests: prefer edition: directives to compile-flags:--edition.
[rust.git] / src / test / ui / borrowck / borrowck-for-loop-correct-cmt-for-pattern.nll.stderr
1 error[E0507]: cannot move out of borrowed content
2   --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:22:15
3    |
4 LL |     for &a in x.iter() {    //~ ERROR cannot move out
5    |          -    ^^^^^^^^ cannot move out of borrowed content
6    |          |
7    |          data moved here
8    |          help: to prevent move, use ref or ref mut: `ref a`
9
10 error[E0507]: cannot move out of borrowed content
11   --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:28:15
12    |
13 LL |     for &a in &f.a {  //~ ERROR cannot move out
14    |          -    ^^^^ cannot move out of borrowed content
15    |          |
16    |          data moved here
17    |          help: to prevent move, use ref or ref mut: `ref a`
18
19 error[E0507]: cannot move out of borrowed content
20   --> $DIR/borrowck-for-loop-correct-cmt-for-pattern.rs:32:15
21    |
22 LL |     for &a in x.iter() {    //~ ERROR cannot move out
23    |          -    ^^^^^^^^ cannot move out of borrowed content
24    |          |
25    |          data moved here
26    |          help: to prevent move, use ref or ref mut: `ref a`
27
28 error: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0507`.