rust/tests/ui/consts/union_constant.rs

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

12 lines
228 B
Rust
Raw Normal View History

//@ build-pass (FIXME(62277): could be check-pass?)
union Uninit {
_never_use: *const u8,
uninit: (),
}
const UNINIT: Uninit = Uninit { uninit: () };
const UNINIT2: (Uninit,) = (Uninit { uninit: () }, );
fn main() {}