rust/tests/ui/rfc-2632-const-trait-impl/nested-closure.rs
Trevor Gross dc4ba57566 Stabilize a portion of 'once_cell'
Move items not part of this stabilization to 'lazy_cell' or 'once_cell_try'
2023-03-29 18:04:44 -04:00

13 lines
198 B
Rust

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