]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/issue-71546.rs
1 // Regression test for #71546.
3 // Made to pass as part of fixing #98095.
7 pub fn serialize_as_csv
<V
>(value
: &V
) -> Result
<String
, &str>
10 for<'a
> &'a V
: IntoIterator
,
11 for<'a
> <&'a V
as IntoIterator
>::Item
: ToString
+ '
static,
13 let csv_str
: String
= value
.into_iter().map(|elem
| elem
.to_string()).collect
::<String
>();