]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-81584.fixed
Auto merge of #107044 - cuviper:more-llvm-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / issues / issue-81584.fixed
1 // run-rustfix
2 fn main() {
3         let _ = vec![vec![0, 1], vec![2]]
4             .into_iter()
5             .map(|y| y.iter().map(|x| x + 1).collect::<Vec<_>>())
6                   //~^ ERROR cannot return value referencing function parameter `y`
7             .collect::<Vec<_>>();
8 }