1 fn read_lines_borrowed<'a>() -> Vec<&'a str> {
2 let raw_lines: Vec<String> = vec!["foo ".to_string(), " bar".to_string()];
3 raw_lines.iter().map(|l| l.trim()).collect()
4 //~^ ERROR cannot return value referencing local variable `raw_lines`
8 println!("{:?}", read_lines_borrowed());