mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 12:07:40 +00:00
13 lines
198 B
Rust
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() {}
|