]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closure_promotion.rs
Merge commit '1fcc74cc9e03bc91eaa80ecf92976b0b14b3aeb6' 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 }