summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/union_constant.rs
blob: 508ff7e0ae8e67d5bb1c6cb09cbf980710ee974f (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() {}