]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-81584.rs
Rollup merge of #107186 - GuillaumeGomez:correct-pseudo-element-selector, r=notriddle
[rust.git] / tests / ui / issues / issue-81584.rs
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))
6                   //~^ ERROR cannot return value referencing function parameter `y`
7             .collect::<Vec<_>>();
8 }