mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 08:37:50 +00:00
11 lines
300 B
Rust
11 lines
300 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/13497
|
|
|
|
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() {}
|