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() {}