2014-10-02 14:52:06 -05:00
|
|
|
fn read_lines_borrowed1() -> Vec<
|
|
|
|
&str //~ ERROR missing lifetime specifier
|
|
|
|
> {
|
|
|
|
let rawLines: Vec<String> = vec!["foo ".to_string(), " bar".to_string()];
|
2015-01-26 20:21:15 -06:00
|
|
|
rawLines.iter().map(|l| l.trim()).collect()
|
2014-10-02 14:52:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|