about summary refs log tree commit diff
path: root/tests/ui/consts/union_constant.rs
blob: f6ef235dcddfcaabf1a62ebeffb636db8ae82fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ 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() {}