Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
5f6fa960c254dfda8ba1d5dc2fb281b6908d8005
/
.
/
tests
/
ui
/
consts
/
cycle-static-promoted.rs
blob: d648d048611899cb229e449947f0c3816869c826 [
file
]
//@ 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
()
{}