]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/closure_promotion.rs
Auto merge of #106399 - estebank:type-err-span-label, r=nagisa
[rust.git] / tests / ui / closures / closure_promotion.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2
3 fn main() {
4     let x: &'static _ = &|| { let z = 3; z };
5 }