1 error[E0597]: `raw_lines` does not live long enough
2 --> $DIR/drop-with-active-borrows-2.rs:13:5
4 LL | raw_lines.iter().map(|l| l.trim()).collect()
5 | ^^^^^^^^^ borrowed value does not live long enough
6 LL | //~^ ERROR `raw_lines` does not live long enough
8 | - `raw_lines` dropped here while still borrowed
10 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 11:24...
11 --> $DIR/drop-with-active-borrows-2.rs:11:24
13 LL | fn read_lines_borrowed<'a>() -> Vec<&'a str> {
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0597`.