]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closure_promotion.rs
Merge commit '70c0f90453701e7d6d9b99aaa1fc6a765937b736' into clippyup
[rust.git] / src / test / ui / closure_promotion.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2
3 #![allow(const_err)]
4
5 fn main() {
6     let x: &'static _ = &|| { let z = 3; z };
7 }