summary refs log tree commit diff
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/nested-closure.rs
blob: d43fabcedec55c1bab3e9713fc982dd7b48ef8ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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() {}