]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-71546.stderr
Rollup merge of #97269 - RalfJung:transmute, r=m-ou-se
[rust.git] / src / test / ui / borrowck / issue-71546.stderr
1 error: higher-ranked lifetime error
2   --> $DIR/issue-71546.rs:9:27
3    |
4 LL |       let csv_str: String = value
5    |  ___________________________^
6 LL | |
7 LL | |
8 LL | |
9 LL | |         .into_iter()
10 LL | |         .map(|elem| elem.to_string())
11    | |_____________________________________^
12    |
13    = note: could not prove for<'r> [closure@$DIR/issue-71546.rs:14:14: 14:37] well-formed
14
15 error: higher-ranked lifetime error
16   --> $DIR/issue-71546.rs:9:27
17    |
18 LL |       let csv_str: String = value
19    |  ___________________________^
20 LL | |
21 LL | |
22 LL | |
23 LL | |         .into_iter()
24 LL | |         .map(|elem| elem.to_string())
25    | |_____________________________________^
26    |
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
28
29 error: higher-ranked lifetime error
30   --> $DIR/issue-71546.rs:9:27
31    |
32 LL |       let csv_str: String = value
33    |  ___________________________^
34 LL | |
35 LL | |
36 LL | |
37 ...  |
38 LL | |
39 LL | |         .collect::<String>();
40    | |____________________________^
41    |
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
43
44 error: higher-ranked lifetime error
45   --> $DIR/issue-71546.rs:14:14
46    |
47 LL |         .map(|elem| elem.to_string())
48    |              ^^^^^^^^^^^^^^^^^^^^^^^
49    |
50    = note: could not prove for<'a> <&'a V as IntoIterator>::Item: 'static
51
52 error: higher-ranked lifetime error
53   --> $DIR/issue-71546.rs:16:10
54    |
55 LL |         .collect::<String>();
56    |          ^^^^^^^
57
58 error: aborting due to 5 previous errors
59