Sign in
fuchsia
/
third_party
/
rust
/
846ea58cd5ae1c8d72e55dd6cf1ee35ffbca3d63
/
.
/
src
/
test
/
ui
/
issues
/
issue-13497-2.rs
blob: a39ae4f1cf33be2105ce1e1b1828857e999c68aa [
file
] [
log
] [
blame
]
fn
read_lines_borrowed
<
'a>() -> Vec<&'
a str
>
{
let
rawLines
:
Vec
<
String
>
=
vec
![
"foo "
.
to_string
(),
" bar"
.
to_string
()];
rawLines
//~ ERROR `rawLines` does not live long enough
.
iter
().
map
(|
l
|
l
.
trim
()).
collect
()
}
fn
main
()
{}