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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
221 B
Rust
Raw Normal View History

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