dc4ba57566
Move items not part of this stabilization to 'lazy_cell' or 'once_cell_try'
13 lines
198 B
Rust
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() {}
|