rust/tests/ui/traits/const-traits/nested-closure.rs
Michael Goulet e91267f3f0 Move tests
2024-10-22 00:03:09 +00:00

13 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() {}