about summary refs log tree commit diff
path: root/tests/ui/lifetimes/missing-lifetime-specifier-13497.rs
blob: 6f4ef0b5620d059e91eb6525edc4007a68d43e51 (plain)
1
2
3
4
5
6
7
8
9
10
//! 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() {}