1
Fork 0
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/nested-closure.rs
2024-02-20 20:55:13 -07:00

12 lines
188 B
Rust

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