blob: 3fba39517fcc522d4aa366964c566cca8cc0a7f4 (
plain)
1
2
3
4
5
6
7
8
9
|
// https://github.com/rust-lang/rust/issues/81584
//@ run-rustfix
fn main() {
let _ = vec![vec![0, 1], vec![2]]
.into_iter()
.map(|y| y.iter().map(|x| x + 1))
//~^ ERROR cannot return value referencing function parameter `y`
.collect::<Vec<_>>();
}
|