Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
cycle-static-promoted.rs
blob: d648d048611899cb229e449947f0c3816869c826 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
struct
Value
{
values
:
&
'static [&'
static
Value
],
}
// This `static` recursively points to itself through a promoted (the slice).
static
VALUE
:
Value
=
Value
{
values
:
&[&
VALUE
],
};
fn
main
()
{}