]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/drop-with-active-borrows-1.stderr
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[rust.git] / src / test / ui / dropck / drop-with-active-borrows-1.stderr
1 error[E0505]: cannot move out of `a` because it is borrowed
2   --> $DIR/drop-with-active-borrows-1.rs:4:10
3    |
4 LL |     let b: Vec<&str> = a.lines().collect();
5    |                        --------- borrow of `a` occurs here
6 LL |     drop(a);
7    |          ^ move out of `a` occurs here
8 LL |     for s in &b {
9    |              -- borrow later used here
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0505`.