rust/tests/ui/rfc-2632-const-trait-impl/nested-closure.rs
2023-01-11 09:32:08 +00:00

13 lines
198 B
Rust

// check-pass
#![feature(const_trait_impl, once_cell)]
use std::sync::LazyLock;
static EXTERN_FLAGS: LazyLock<String> = LazyLock::new(|| {
let x = || String::new();
x()
});
fn main() {}