summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/closure_promotion.rs
blob: 47a8fc0902d3e161264204fd96ec571d31e0903f (plain)
1
2
3
4
5
// build-pass (FIXME(62277): could be check-pass?)

fn main() {
    let x: &'static _ = &|| { let z = 3; z };
}