2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2024-02-12 08:51:41 +01:00
|
|
|
|
|
|
|
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() {}
|