about summary refs log tree commit diff
path: root/tests/ui/consts/cycle-static-promoted.rs
blob: d648d048611899cb229e449947f0c3816869c826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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() {}