]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/static-cycle-error.rs
Rollup merge of #61856 - c410-f3r:attrs-fn, r=matthewjasper
[rust.git] / src / test / ui / consts / static-cycle-error.rs
1 // check-pass
2
3 struct Foo {
4     foo: Option<&'static Foo>
5 }
6
7 static FOO: Foo = Foo {
8     foo: Some(&FOO),
9 };
10
11 fn main() {}