rust/tests/ui/rfcs/rfc-2632-const-trait-impl/nested-closure.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
198 B
Rust
Raw Normal View History

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