]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/nested-closure.rs
Rollup merge of #106716 - c410-f3r:rfc-2397-1, r=davidtwco
[rust.git] / tests / ui / rfc-2632-const-trait-impl / nested-closure.rs
1 // check-pass
2
3 #![feature(const_trait_impl, once_cell)]
4
5 use std::sync::LazyLock;
6
7 static EXTERN_FLAGS: LazyLock<String> = LazyLock::new(|| {
8     let x = || String::new();
9     x()
10 });
11
12 fn main() {}