]> git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-2632-const-trait-impl/nested-closure.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / 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() {}