mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +00:00
9 lines
228 B
Rust
9 lines
228 B
Rust
fn read_lines_borrowed1() -> Vec<
|
|
&str //~ ERROR missing lifetime specifier
|
|
> {
|
|
let rawLines: Vec<String> = vec!["foo ".to_string(), " bar".to_string()];
|
|
rawLines.iter().map(|l| l.trim()).collect()
|
|
}
|
|
|
|
fn main() {}
|