]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-81584.fixed
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / test / 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 }