about summary refs log tree commit diff
path: root/tests/ui/issues/issue-81584.fixed
blob: c3d33a1b4f8bc7f82c414189f1d446e53836b874 (plain)
1
2
3
4
5
6
7
8
//@ run-rustfix
fn main() {
        let _ = vec![vec![0, 1], vec![2]]
            .into_iter()
            .map(|y| y.iter().map(|x| x + 1).collect::<Vec<_>>())
                  //~^ ERROR cannot return value referencing function parameter `y`
            .collect::<Vec<_>>();
}