summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-13497.rs
blob: 4b2795aa841e83ce60cc7eb3f175c4587db68a6a (plain)
1
2
3
4
5
6
7
8
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() {}