about summary refs log tree commit diff
path: root/tests/ui/recursion/recursive-static-definition.rs
blob: 4f0624eb16235e6ff85698ac49e4172b5a64a9b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
pub static FOO: u32 = FOO;
//~^ ERROR encountered static that tried to access itself during initialization

#[derive(Copy, Clone)]
pub union Foo {
    x: u32,
}

pub static BAR: Foo = BAR;
//~^ ERROR encountered static that tried to access itself during initialization

fn main() {}