2024-02-17 04:02:50 +08:00
|
|
|
//@ run-rustfix
|
2021-02-10 01:18:28 +08:00
|
|
|
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<_>>();
|
|
|
|
}
|