]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-13497.rs
Rollup merge of #106896 - Ezrashaw:str-cast-bool-emptyness, r=compiler-errors
[rust.git] / tests / ui / issues / issue-13497.rs
1 fn read_lines_borrowed1() -> Vec<
2     &str //~ ERROR missing lifetime specifier
3 > {
4     let rawLines: Vec<String> = vec!["foo  ".to_string(), "  bar".to_string()];
5     rawLines.iter().map(|l| l.trim()).collect()
6 }
7
8 fn main() {}