]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/nested-closure.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[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() {}