summary refs log tree commit diff
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/nested-closure.rs
blob: 7bd372c169521b396582bf48175f6a6164a3edfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-pass

#![feature(const_trait_impl)]

use std::sync::LazyLock;

static EXTERN_FLAGS: LazyLock<String> = LazyLock::new(|| {
    let x = || String::new();
    x()
});

fn main() {}