]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closure_promotion.rs
Auto merge of #60072 - RalfJung:linked-list, r=shepmaster
[rust.git] / src / test / ui / closure_promotion.rs
1 // ignore-compare-mode-nll
2
3 #![allow(const_err)]
4
5 // nll successfully compiles this.
6 fn main() {
7     let x: &'static _ = &|| { let z = 3; z }; //~ ERROR does not live long enough
8 }