blob: 55db6a86bf1fc6791175776b6b009981427355bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
pub static FOO: u32 = FOO;
//~^ ERROR encountered static that tried to initialize itself with itself
#[derive(Copy, Clone)]
pub union Foo {
x: u32,
}
pub static BAR: Foo = BAR;
//~^ ERROR encountered static that tried to initialize itself with itself
fn main() {}
|