summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/static-cycle-error.rs
blob: 9ce050aae218174de810976cf2cff825bbd86c75 (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass

struct Foo {
    foo: Option<&'static Foo>
}

static FOO: Foo = Foo {
    foo: Some(&FOO),
};

fn main() {}