summary refs log tree commit diff
path: root/src/test/ui/consts/union_constant.rs
blob: 16b05310b9fcb64c8291a09f0be33c64ddbbb708 (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-pass

union Uninit {
    _never_use: *const u8,
    uninit: (),
}

const UNINIT: Uninit = Uninit { uninit: () };
const UNINIT2: (Uninit,) = (Uninit { uninit: () }, );

fn main() {}