]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0505]: cannot move out of `a` because it is borrowed |
0731742a | 2 | --> $DIR/drop-with-active-borrows-1.rs:4:10 |
b7449926 XL |
3 | | |
4 | LL | let b: Vec<&str> = a.lines().collect(); | |
c295e0f8 | 5 | | --------- borrow of `a` occurs here |
532ac7d7 | 6 | LL | drop(a); |
b7449926 | 7 | | ^ move out of `a` occurs here |
48663c56 XL |
8 | LL | for s in &b { |
9 | | -- borrow later used here | |
b7449926 XL |
10 | |
11 | error: aborting due to previous error | |
12 | ||
13 | For more information about this error, try `rustc --explain E0505`. |