fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
536 B14 linesraw
1error[E0515]: cannot return value referencing function parameter `y`
2  --> $DIR/issue-81584.rs:5:22
3   |
4LL |             .map(|y| y.iter().map(|x| x + 1))
5   |                      -^^^^^^^^^^^^^^^^^^^^^^
6   |                      |
7   |                      returns a value referencing data owned by the current function
8   |                      `y` is borrowed here
9   |
10   = help: use `.collect()` to allocate the iterator
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0515`.