rust/tests/ui/lifetimes/unnamed-closure-doesnt-life-long-enough-issue-67634.rs
2023-01-11 09:32:08 +00:00

4 lines
97 B
Rust

fn main() {
[0].iter().flat_map(|a| [0].iter().map(|_| &a)); //~ ERROR closure may outlive
}