rust/tests/ui/recursion/recursive-static-definition.rs

13 lines
221 B
Rust

pub static FOO: u32 = FOO;
//~^ ERROR could not evaluate static initializer
#[derive(Copy, Clone)]
pub union Foo {
x: u32,
}
pub static BAR: Foo = BAR;
//~^ ERROR could not evaluate static initializer
fn main() {}