summary refs log tree commit diff
path: root/src/test/ui/consts/static-cycle-error.rs
blob: 8e69d3eda6d2e60d934c523a92714ba8d2d507af (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-pass

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

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

fn main() {}