fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
654 B11 linesraw
1error[E0515]: cannot return value referencing function parameter
2  --> $DIR/issue-26619.rs:7:76
3   |
4LL |         for s in vec!["1|2".to_string()].into_iter().filter_map(|ref line| self.make_entry(line)) {
5   |                                                                  --------  ^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function
6   |                                                                  |
7   |                                                                  function parameter borrowed here
8
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0515`.