about summary refs log tree commit diff
path: root/tests/ui/consts/static-cycle-error.rs
blob: b23872ed509f555ac15d040ce1fd7cd589d5f1c6 (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() {}