Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
rfcs
/
rfc-2632-const-trait-impl
/
nested-closure.rs
blob: d43fabcedec55c1bab3e9713fc982dd7b48ef8ce [
file
] [
log
] [
blame
]
//@ 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
()
{}