1 error[E0597]: `rawLines` does not live long enough
2 --> $DIR/issue-13497-2.rs:3:5
4 LL | rawLines //~ ERROR `rawLines` does not live long enough
5 | ^^^^^^^^ borrowed value does not live long enough
6 LL | .iter().map(|l| l.trim()).collect()
8 | - borrowed value only lives until here
10 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 1:24...
11 --> $DIR/issue-13497-2.rs:1: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`.