1 error: higher-ranked lifetime error
2 --> $DIR/issue-71546.rs:9:27
4 LL | let csv_str: String = value
5 | ___________________________^
10 LL | | .map(|elem| elem.to_string())
11 | |_____________________________________^
13 = note: could not prove for<'r> [closure@$DIR/issue-71546.rs:14:14: 14:37] well-formed
15 error: higher-ranked lifetime error
16 --> $DIR/issue-71546.rs:9:27
18 LL | let csv_str: String = value
19 | ___________________________^
24 LL | | .map(|elem| elem.to_string())
25 | |_____________________________________^
27 = note: could not prove for<'r, 's> Map<<&'r V as IntoIterator>::IntoIter, [closure@$DIR/issue-71546.rs:14:14: 14:37]> well-formed
29 error: higher-ranked lifetime error
30 --> $DIR/issue-71546.rs:9:27
32 LL | let csv_str: String = value
33 | ___________________________^
39 LL | | .collect::<String>();
40 | |____________________________^
42 = note: could not prove for<'r, 's> Map<<&'r V as IntoIterator>::IntoIter, [closure@$DIR/issue-71546.rs:14:14: 14:37]> well-formed
44 error: higher-ranked lifetime error
45 --> $DIR/issue-71546.rs:14:14
47 LL | .map(|elem| elem.to_string())
48 | ^^^^^^^^^^^^^^^^^^^^^^^
50 = note: could not prove for<'a> <&'a V as IntoIterator>::Item: 'static
52 error: higher-ranked lifetime error
53 --> $DIR/issue-71546.rs:16:10
55 LL | .collect::<String>();
58 error: aborting due to 5 previous errors