summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/unnamed-closure-doesnt-life-long-enough-issue-67634.rs
blob: 8deb3655158409ae252528e7d023615c19e8b419 (plain)
1
2
3
fn main() {
    [0].iter().flat_map(|a| [0].iter().map(|_| &a)); //~ ERROR closure may outlive
}