mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-05 10:48:46 +00:00
13 lines
221 B
Rust
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() {}
|