summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/nested-closure.rs
blob: a851136009c46319e4d1e7a54d50abf282ac6c84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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() {}